53 | | * For each item you crawl, call handler.objectNew, objectNotModified or objectChanged. |
| 53 | * For each item you crawl, call handler.objectNew, objectNotModified or objectChanged. |
| 54 | * The handler object can also supply you with RDFContainers for storing info about your items: |
| 55 | {{{ |
| 56 | RDFContainer rdf = handler.getRDFContainerFactory(this,e.getUri()).getRDFContainer(uri); |
| 57 | DataObject res=new DataObjectBase(uri,source,rdf); |
| 58 | |
| 59 | rdf.add(DATA.name,e.getTitle()); |
| 60 | rdf.add(DATA.description,e.getDescription().toString()); |
| 61 | }}} |
| 62 | This RDFContainer also has nice utility methods for creating the rdf content, and the [http://aperture.sourceforge.net/ontology/data.rdfs DATA schema] has handy properties. |