stanbol-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Spicar <>
Subject Re: parser binding
Date Tue, 13 Nov 2012 10:04:14 GMT
To parse serialized RDF formats in tests or without the OSGi environment
you can use this:

org.apache.clerezza.rdf.core.serializedform.Parser parser =
  Graph graph = parser.parse(
  inputStream, formatString);

formatString can be any of the supported formats, e.g.
"application/rdf+xml" or "text/rdf+nt"

The required dependencies are:

For the Parser class

For the parsing providers:

You can also use the jena parser directly by instanciating it:
new org.apache.clerezza.rdf.jena.parser.JenaParserProvider();

To bind a parser in the OSGi environment you can use this:

private org.apache.clerezza.rdf.core.serializedform.Parser parser;

Note: Supported formats (by the jena parser) are:

Hope this helps.


On 12 November 2012 19:40, Luigi Selmi <> wrote:

> Hello
> I am using Clerezza API to manage FOAF profiles. I need to parse foaf
> RDF/XML files and so I need the parser provided by the Clerezza platform
> but don't know how to bind a parsing provider. I would like to test the
> parser before creating the bundle to upload and activate on Felix. Is that
> possible ?
> Thanks
> Luigi

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message