From: Stian Soiland-R. <soi...@ma...> - 2025-01-21 20:23:43
|
Note that this ontology has both an "allowedValue" and "allowedValues", the second is recognised by Protege to be implied object propertyl as it has a range of AllowedValues which is defined as a class. However the first singular form, has no defined domain or range, and is not used on any other statements. So by the open world assumption and OWL2-RDF specification there is no way to say what kind of property it is meant to be. You could argue it should then be recognised as an Individual, but i think that is avoided by the OWL API code for good reason. What I would recommend, if you can't convince the OASIS/OCLS maintainers to declare their OWL ontology in OWL, then use a quotation to define the property in OWL yourself. Use rdfs;isDefinedBy to define the original source, and owl:import to get the rest (e.g. label, range). <http://www.semanticweb.org/stain/ontologies/2025/0/untitled-ontology-21> rdf:type owl:Ontology ; owl:imports <http://open-services.net/ns/core#> . <http://open-services.net/ns/core#allowedValue> rdf:type owl:AnnotationProperty ; rdfs:isDefinedBy <http://open-services.net/ns/core#> . After reloading in protege, you get the remaining annotations (rdfs:label, rdfs:comment) loaded from the OWL import (label, comment) and the property is listed under Annotation properties. Note that if the owl import brings in lots of things you don't want, just expand the quotation to include just enough. -- Stian Soiland-Reyes, The University of Manchester https://www.esciencelab.org.uk/ https://orcid.org/0000-0001-9842-9718 Please note that I may work flexibly – whilst it suits me to email now, I do not expect a response or action outside of your own working hours. ________________________________________ From: Samson Tu <sw...@st...> Sent: 21 January 2025 16:18 To: owl...@li... Subject: Re: [OWLAPI-developer] Questions about OWL 2 RDF-Based Semantics I meant to say "oclc:allowedValue is not declared an OWL entity at all and is invisible in Protégé." On Jan 20, 2025, at 5:22 PM, Samson Tu <sw...@st...> wrote: The example Steve posted on the Protégé-user mailing list is oslc:allowedValue a rdf:Property ; rdfs:isDefinedBy oslc: ; rdfs:label "allowedValue" ; rdfs:comment "Specifies the allowed values for a property (may be more than one)." . I downloaded the ontology from https://docs.oasis-open-projects.org/oslc-op/core/v3.0/os/core-vocab.ttl [docs.oasis-open-projects.org]<https://urldefense.com/v3/__https://docs.oasis-open-projects.org/oslc-op/core/v3.0/os/core-vocab.ttl__;!!PDiH4ENfjr2_Jw!CrXNij7N6JRLbkVtQwXO--l-RswlO4estOVXL7KPz8G_sj9N5_OzGN0_vst9gZ2NouRid3HSlsDtiGOhdGtVCwznsQ$> After loading it in Protégé and saving it as a turtle-syntax serialisation, the output file contains ################################################################# # Annotations ################################################################# oslc:allowedValue rdfs:comment "Specifies the allowed values for a property (may be more than one)." ; rdfs:isDefinedBy <http://open-services.net/ns/core#> [open-services.net]<https://urldefense.com/v3/__http://open-services.net/ns/core*__;Iw!!PDiH4ENfjr2_Jw!CrXNij7N6JRLbkVtQwXO--l-RswlO4estOVXL7KPz8G_sj9N5_OzGN0_vst9gZ2NouRid3HSlsDtiGOhdGvH5-_p5Q$> ; rdfs:label "allowedValue” . However, iclc: allowedValue is not declared as an annotation property, which I find surprising. oclc:allowedValue is not declared an OWL entity at all and is visible in Protégé. Is that the expected behavior? Thank you. With best regards, Samson On Jan 20, 2025, at 3:12 PM, Ignazio Palmisano <ipa...@gm...> wrote: Hi, The list is quite low traffic these days so I'm not sure how many people still read ot actively. OWLAPI doesn't do transformations from rdfs vocabulary, really - there are equivalences between some rdf/rdfs vocabulary and owl vocabulary, like rdfs:Class and owl:Class. But rdf: Property doesn't map to data or object properties, which I guess is what you're seeing. An example would help. Cheers, Ignazio On Mon, 20 Jan 2025, 23:01 Steve Vestal via Owlapi-developer, <owl...@li...<mailto:owl...@li...>> wrote: Someone in the Protege list referred me to you for questions about the relationship between OWLAPI and "OWL 2 Web Ontology Language RDF-Based Semantics." When an ontology using that standard is loaded in Protege, classes and individuals are listed, but not the properties. It appears OWLAPI makes some transformations of an input file, e.g., rdfs:Class will be transformed to owl:Class. Are there OWLAPI configuration settings or APIs for transformations? Do the OWLAPI transformations relate in some way to the above standard, e.g., recognize some of their axiomatic triples and do some of their OWL 2 RDF-Based Semantics to OWL 2 Direct Semantics transforms? _______________________________________________ Owlapi-developer mailing list Owl...@li...<mailto:Owl...@li...> https://lists.sourceforge.net/lists/listinfo/owlapi-developer [lists.sourceforge.net]<https://urldefense.com/v3/__https://lists.sourceforge.net/lists/listinfo/owlapi-developer__;!!PDiH4ENfjr2_Jw!CrXNij7N6JRLbkVtQwXO--l-RswlO4estOVXL7KPz8G_sj9N5_OzGN0_vst9gZ2NouRid3HSlsDtiGOhdGur_-yzWg$> _______________________________________________ Owlapi-developer mailing list Owl...@li... https://lists.sourceforge.net/lists/listinfo/owlapi-developer [lists.sourceforge.net]<https://urldefense.com/v3/__https://lists.sourceforge.net/lists/listinfo/owlapi-developer__;!!PDiH4ENfjr2_Jw!CrXNij7N6JRLbkVtQwXO--l-RswlO4estOVXL7KPz8G_sj9N5_OzGN0_vst9gZ2NouRid3HSlsDtiGOhdGur_-yzWg$> |