OWL: Abstract classes , anonymous nodes, Regular Expressions
-
13-09-2019 - |
Question
When defining an Ontology using OWL, is there a way to say that a class
- should always be an Anonymous Node (no rdf:about="...") e.g. <my:FamousQuote/>
- is abstract and any Instance of this class should always use a subClass
(edited here:)
- that a DataTypeProperty should match a regular expression ?
Thanks
Solution
OWL (in general) is about entailments given a set of RDF, not about validation (especially with regards to structure).
- There is no way in OWL 1.1 to know if a node is anonymous or not. OWL 2 does not seem to support this either (via a
owl:Restriction
, for example). - For the abstract class requirement, this post on the Protege mailing list has some ideas on how to do this.
- OWL 1.1
DatatypeProperties
do not support "validation" of a given statement's object. OWL 2 has datatype facets (includingxsd:pattern
) which you could potentially use.
Update: You may be able to use SPIN to query the graph structure and contents in order to infer new triples.
OTHER TIPS
Defining A as abstract class using following OWL syntax
A subClassOf (unionOf [B, C]) and (disjoint[B, C])
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow