Mark Diggory wrote: >> Sesame 2 uses a highly modularized organization which allows you to >> use >> only the parts that you need. All RDF parsers combined will >> probably fit >> in a ~200K jar file, but you can exclude the RDF formats that you >> don't >> want to use. The only external dependency for Rio is a dependency >> on the >> slf4j logging framework (~20K in total). > > This is great to know, however, Rio isn't very well publicized on the > OpenRDF site, making it difficult to know the details about using the > api. But it does look as though its event based like SAX.
FYI: We're currently wiki-fying the openrdf site to make it easier to document things. > Looks like RdfDocumentWriter should give me the flexibility I need. > http://www.openrdf.org/doc/rio/api/org/openrdf/rio/ > RdfDocumentWriter.html Please note that this is the Sesame 1 javadoc. The Sesame 2 API for Rio can be found at http://www.openrdf.org/doc/sesame2/2.0/apidocs/org/openrdf/rio/package-summary.html Sesame 2 also supports "quad" formats (triples + context) like TriG and TriX. Another improvement is that RDF parsers report to RDFHandler's and that RDFWriter extends this interface; this makes it easier to translate one format to another. > If I include it using the following: > >> <dependencies> >> <dependency> >> <groupId>org.openrdf</groupId> >> <artifactId>openrdf-rio-api</artifactId> >> <version>2.0</version> >> </dependency> >> <dependency> >> <groupId>org.openrdf</groupId> >> <artifactId>openrdf-rio-rdfxml</artifactId> >> <version>2.0</version> >> </dependency> > > > I currently get the following transitive includes: > > /Users/mdiggory/.m2/repository/info/aduna/aduna-collections/1.4/aduna- > collections-1.4.jar > /Users/mdiggory/.m2/repository/info/aduna/aduna-concurrent/1.4/aduna- > concurrent-1.4.jar > /Users/mdiggory/.m2/repository/info/aduna/aduna-iteration/1.4/aduna- > iteration-1.4.jar > /Users/mdiggory/.m2/repository/info/aduna/aduna-lang/1.4/aduna- > lang-1.4.jar > /Users/mdiggory/.m2/repository/info/aduna/aduna-net/1.5/aduna- > net-1.5.jar > /Users/mdiggory/.m2/repository/info/aduna/aduna-text/1.3/aduna- > text-1.3.jar > /Users/mdiggory/.m2/repository/info/aduna/aduna-xml/1.5/aduna- > xml-1.5.jar > /Users/mdiggory/.m2/repository/org/openrdf/openrdf-model/2.0/openrdf- > model-2.0.jar > /Users/mdiggory/.m2/repository/org/openrdf/openrdf-rio-api/2.0/ > openrdf-rio-api-2.0.jar > /Users/mdiggory/.m2/repository/org/openrdf/openrdf-rio-rdfxml/2.0/ > openrdf-rio-rdfxml-2.0.jar > /Users/mdiggory/.m2/repository/org/slf4j/slf4j-api/1.3.0/slf4j- > api-1.3.0.jar Note that you'll have to add one of the slf4j implementation to this set yourself. This will make the logging go to your prefered logging implementation (java, log4j, commons logging, ...). > Can you direct me to the dependencies that are specifically just for > the RdfXmlWriter? (But I can probably live with most of the ones > listed). You could try to exclude the first three. > p.s. Is OpenRDF planning to setup their maven release repository so > that it is rsynced against the central repository? I would lighten > our poms "repositories" sections :-) Yes, that's exactly what we have planned. But we'll need to get the non-mavenized dependencies out first (currently just the lubm benchmark). -- Arjohn _______________________________________________ General mailing list [email protected] http://simile.mit.edu/mailman/listinfo/general
