[Pellet-users] How to get properties with Pellet ?

Evren Sirin evren at clarkparsia.com
Mon Sep 15 21:18:53 UTC 2008


On Mon, Sep 15, 2008 at 3:44 PM, François Rioult
<Francois.Rioult at info.unicaen.fr> wrote:
> Dear,
>
> Well thank you very much for your help. I will try the SPARQL queries as
> suggested.
>
> By the way, is there any reason for the error with -c RDF-ALL options ?

This was a bug introduced in 1.5 version. It has been fixed for the
next release [1].

Cheers,
Evren

[1] http://cvsdude.com/trac/clark-parsia/pellet-devel/ticket/83

>
> Best regards,
>
> François.
>
>
> On Mon, 2008-09-15 at 15:25 -0400, Evren Sirin wrote:
>> The command line tool only prints the classification hierarchy with -c
>> option and instance relations with -r option. The results will never
>> contain property assertions whichever format you choose. You can run a
>> SPARQL query using -qf or -qs option for other kind of queries, e.g.
>> ?s ?p ?o query would print property assertions. The SPARQL results are
>> not printed in RDF format though (there is no support for CONSTRUCT
>> queries in the command line either). It would be quite
>> straight-forward to do this (or something similar) in a Java program.
>>
>> Cheers,
>> Evren
>>
>>
>> On Mon, Sep 15, 2008 at 1:15 PM, François Rioult
>> <Francois.Rioult at info.unicaen.fr> wrote:
>> > Hello,
>> >
>> > I have some (elementary ?) problems with Pellet-1.5.2 in command-line (pellet.sh):
>> > - the argument -c RDF-ALL is refused
>> > - the ouput RDF does not write the (object or data) properties.
>> >
>> > As an example, with the below file (one class, two instances in relation with data propertie) :
>> >
>> > <!-- Classes -->
>> >  <owl:Class rdf:about="#MyClass"/>
>> >  <owl:Class rdf:about="&testPellet0;MyClass"/>
>> >
>> > <!-- Datatype Properties -->
>> >  <owl:DatatypeProperty rdf:about="#MyDataPropertie"/>
>> >  <owl:DatatypeProperty rdf:about="&testPellet0;MyDataPropertie"/>
>> >
>> > <!-- Object Properties -->
>> >  <owl:ObjectProperty rdf:about="#MyObjectPropertie"/>
>> >  <owl:ObjectProperty rdf:about="&testPellet0;MyObjectPropertie"/>
>> >
>> > <!-- Instances -->
>> >  <testPellet0:MyClass rdf:about="#myInstance2">
>> >    <testPellet0:MyDataPropertie rdf:datatype="&xsd;string">something2</testPellet0:MyDataPropertie>
>> >  </testPellet0:MyClass>
>> >
>> >  <testPellet0:MyClass rdf:about="#myIntstance1">
>> >    <testPellet0:MyDataPropertie rdf:datatype="&xsd;string">something1</testPellet0:MyDataPropertie>
>> >    <testPellet0:MyObjectPropertie rdf:resource="#myInstance2"/>
>> >  </testPellet0:MyClass>
>> > </rdf:RDF>
>> > ---------------------------------------------------------------------
>> >
>> > The ouput result is :  (./pellet.sh -r -c RDF-ALL -if testPellet.owl)
>> >
>> > <owl:Class rdf:about="http://www.w3.org/2002/07/owl#Thing">
>> > </owl:Class>
>> >
>> > <owl:Class rdf:about="testPellet.owl#MyClass">
>> >   <rdfs:subClassOf rdf:resource="http://www.w3.org/2002/07/owl#Thing"/>
>> > </owl:Class>
>> >
>> > <rdf:Description rdf:about="file:/users/ens/frioult/these/dev/ontologies/testPellet.owl#myInstance2">
>> >   <rdf:type rdf:resource="testPellet.owl#MyClass"/>
>> > </rdf:Description>
>> > <rdf:Description rdf:about="file:/users/ens/frioult/these/dev/ontologies/testPellet.owl#myIntstance1">
>> >   <rdf:type rdf:resource="testPellet.owl#MyClass"/>
>> > </rdf:Description>
>> > <owl:Class rdf:about="file:/users/ens/frioult/these/dev/ontologies/testPellet.owl#MyClass">
>> >   <rdfs:subClassOf rdf:resource="http://www.w3.org/2002/07/owl#Thing"/>
>> > </owl:Class>
>> >
>> >
>> > Where are the properties ?
>> >
>> > I am very surprised with this result, because Protégé and Swoop, using Pellet, manage to give full result. In my long journey through ontologies, I remember have read something about the difference between Pellet and its use in Protégé and Swoop, but I can't find it any more.
>> >
>> > Should I use the Java API for my purpose (in the paradise : infer object properties, but at least keep the properties in the result) ?
>> >
>> > Thank you very much in advance,
>> > --
>> > François Rioult
>> > http://boita.info.unicaen.fr/plone
>> >
>> > _______________________________________________
>> > 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