[Pellet-users] Possible to retrieve value of property without "traversing" the knowledge base?

Evren Sirin evren at clarkparsia.com
Wed Jun 4 11:24:58 UTC 2008


I'm sorry but I don't understand what you mean when you say "retrieve
the string content of a datatype property". Are you trying to get the
object value of a data property assertion with a specific datatype
property? If that is the case you can do this easily using either the
Jena (model.listStatements(s, p, null)) or OWLAPI
(reasoner.getRelatedValues(s,p)) interfaces.

If you are asking about retrieving some other information then we will
need more information about what it is you are trying to do. Concrete
example would be better than verbal descriptions because statements like
"a property which is declared under a concept" are ambiguous (is it
defined via domain/range restrictions or some kind of OWL restriction or
...).

Cheers,
Evren

On 6/2/08 12:04 PM, Koh Shu Lin wrote:
> Hi all,
>
> I'm currently trying out Pellet using OWL API. I have a problem trying
> to retrieve values from the knowledge base that I've loaded.
>
> For example, I have an ontology that describes about Organisation and
> I would like to retrieve the string content of a datatype property
> (which is named "productCategory") which is declared under the
> "Description" concept.
>
> The ontology is expressed as follows:
> An Organisation (Concept) has a ProductService (through an object
> property "hasProductService") which consists of a Description (through
> an object property "hasDescription").
>
> I've tried creating a method that traverse through every properties of
> each concept that is found though a depth-first search, starting from
> a root concept "Organisation". However I will end up searching
> endlessly as I have also included inverse functional properties such
> as "productServiceOf" which will bring me back to the "Organisation"
> concept.
>
> Is there any method that I can efficiently retrieve the string value
> without searching through every single properties from the root
> concept (which is "Organisation" in this case)?
>
>
> ------------------------------------------------------------------------
> Share your beautiful moments with Photo Gallery. Windows Live Photo
> Gallery <http://get.live.com/photogallery/overview>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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