Use rdf or rdfs datatype?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Use rdf or rdfs datatype?

Sam Russell
What's the best way to use an `rdf` or `rdfs` datatype in Owlready2?

Specifically, I need to create a class which is a subclass of `rdf:List`.

More generally, as merely an observation, not a question, I was a little surprised to find that integrating things like Dublin Core and SKOS into an OWL ontology isn't totally plug-and-play.

Also, this is a great library, thanks for sharing it as free software.  Semantic Web's not dead!!  Triplez 4 Life!
Reply | Threaded
Open this post in threaded view
|

Re: Use rdf or rdfs datatype?

Jiba
Administrator
Hi,

I'm sorry, but there is no support for RDF list in Owlready. Owlready focuses on OWL, but does not support all non-OWL features of RDF / RDFS.

You may consider using RDFLIB for RDF, possibly in combination with Owlready (in particular, the quadstore of Owlready is highly optimized and probably much faster than the one of RDFLIB).

Jiba
Reply | Threaded
Open this post in threaded view
|

Re: Use rdf or rdfs datatype?

Sam Russell
Hm, interesting.  I found this article:  http://owl-workshop.man.ac.uk/acceptedLong/submission_12.pdf  (Drummond et al. 2006) in a StackOverflow thread about lists in OWL.  It looks like it just re-implements that classic Lisp-style linked list structure used by RDF:List, but in OWL.  

So that's one option, but I don't really need to do much, if any, reasoning over the list, so I could just create a placeholder, dummy class that is included in the domain of a "containsListElement" object property.

Unless there's some existing list ontologies I could just import.  I will research those options, but if anyone has any recommendations on one to use, that would be much appreciated.

Thanks!
Reply | Threaded
Open this post in threaded view
|

Re: Use rdf or rdfs datatype?

Sam Russell
This Ordered List Ontology might do the trick:  http://smiy.sourceforge.net/olo/spec/orderedlistontology.html