Changes between Version 10 and Version 11 of ApertureRDF
- Timestamp:
- 10/26/05 12:48:38 (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ApertureRDF
v10 v11 43 43 }}} 44 44 45 Since we're now passing the Repository, we should also pass the document URI so that the Extractor knows forwhich resource it has to create a CBD.45 Since 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. 46 46 47 47 The Extractor may then do something as follows: … … 49 49 {{{ 50 50 #!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 56 assuming the full text is put as a literal in the RDF. 57 58 The 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 ;) ) 52 65 }}} 53 66