Changes between Version 12 and Version 13 of DynamicDatasources


Ignore:
Timestamp:
04/12/06 17:14:06 (18 years ago)
Author:
grimnes
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DynamicDatasources

    v12 v13  
    5151   * The return value of crawlObjects is taken from ExitCode, it has predefined values for you. 
    5252   * The CrawlerBase does many things for you, for example it provides a dataAccess object, which you use to check if things are new. This  is essentially like a hash-table for each URI, allowing you to store key=>values for each Id, and it has predefined keys for date and size. 
    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{{{ 
     56RDFContainer rdf = handler.getRDFContainerFactory(this,e.getUri()).getRDFContainer(uri); 
     57DataObject res=new DataObjectBase(uri,source,rdf); 
     58                 
     59rdf.add(DATA.name,e.getTitle()); 
     60rdf.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.