[Pellet-users] SPARQL pellet query and rdfs:label
Evren Sirin
evren at clarkparsia.com
Wed Mar 14 11:58:45 UTC 2007
On 3/9/07 1:04 PM, Paolo Bussotti wrote:
> Hi everybody,
> I'm writing a software which is devised to exchange a URI (of class,
> propertties, individuals..) of the ontology for their rdfs:label,
> possibly under the request of a xml:lang , in order to provide a
> multilingustic GUI for the knowledge-based system under development.
> Apart from the programmatical approach, I would like to make use of
> SPARQL queries, in particular on the Pellet query engine (I'm using
> pellet-1.4RC2). However
> I didn't manage to query for rdfs:label or rdfs:comment. Are they
> supported (or going to be) by the Pellet query engine.
Annotation properties are not currently supported by the internal Pellet
query engine (but datatype properties are supported). But they will be
supported in the future as we also extend the query engine to mixed
ABox/Tbox queries.
> Or shall I use a
> particular form (which I ignore) must be used for queries about those
> annotation properties?
>
The workaround is to use the query engine from Jena on a model backed
with Pellet. There are some disadvantages of not using the Pellet engine
(e.g. the class expressions you encode in SPARQL will not be recognized,
performance might be slightly affected, etc.). Note that,
PelletQueryExecution checks your query, calls the Pellet query engine if
everything in the query is supported and delegates the query to Jena
query engine. See also examples/BnodeQueryExample that shows the
difference between query engines w.r.t. bnodes used in the query.
Cheers,
Evren
> Many, many thanks in advance.
> Paolo Bussotti
>
> _______________________________________________
> Pellet-users mailing list
> Pellet-users at lists.owldl.com
> http://lists.owldl.com/mailman/listinfo/pellet-users
> _______________________________________________
>
> Sponsored by Clark & Parsia, LLC http://clarkparsia.com/
>
More information about the Pellet-users
mailing list