Changes between Version 10 and Version 11 of ApertureRDF


Ignore:
Timestamp:
10/26/05 12:48:38 (19 years ago)
Author:
anonymous
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ApertureRDF

    v10 v11  
    4343}}} 
    4444 
    45 Since we're now passing the Repository, we should also pass the document URI so that the Extractor knows for which resource it has to create a CBD. 
     45Since we're now passing the Repository, we should also pass the document URI so that the Extractor knows around which resource it has to create a CBD. 
    4646 
    4747The Extractor may then do something as follows: 
     
    4949{{{ 
    5050#!java 
    51         repository.add 
     51        ValueFactory factory = repository.getValueFactory(); 
     52        repository.add(docURI, Vocabulary.titleURI, factory.createLiteral(titleString); 
     53        repository.add(docURI, Vocabulary.fullTextURI, factory.createLiteral(fullText); 
     54}}} 
     55 
     56assuming the full text is put as a literal in the RDF. 
     57 
     58The following code uses a graph-oriented approach, but its effect is exactly the same: 
     59 
     60{{{ 
     61#!java 
     62        ValueFactory factory = repository.getValueFactory(); 
     63        URIVertex docVertex = new URIVertex(repository, docURI); 
     64        ... (waiting for Sesame 2 Javadoc to be updated ;) ) 
    5265}}} 
    5366