Skip to content

Why xsd:anyURI literals instead of real URLs? #1200

@VladimirAlexiev

Description

@VladimirAlexiev
  • me (from Suggestions for ONTOLOGY_GUIDE #983 item 17): Please explain why do you use owl:DatatypeProperties with ^^xsd:anyURI instead of real URLs (i.e. owl:ObjectProperties without range).
  • @ElisaKendall If you use OWL reasoning, there are certain declarations / uses that disallow a URI in the range. So for annotations we've used anyURI.

Elisa, can you please explain these declarations / uses / restrictions?

I analyzed instances of anyURI in 2020Q3-prod like this:

 find . -iname '*.ttl'|xargs cat|riot -syntax ttl -out nt |sort > all.nt
 grep anyURI all.nt |cut -d " " -f2 |sort|uniq -c|sort -rn > anyURI-props.txt

A lot are annotation props but not all. Star indicates maybe a change is needed:

*  1990 <https://spec.edmcouncil.org/fibo/ontology/FND/Places/VirtualPlaces/hasWebsite>
*   571 <http://www.omg.org/techprocess/ab/SpecificationMetadata/dependsOn>
    479 <https://spec.edmcouncil.org/fibo/ontology/FND/Utilities/AnnotationVocabulary/adaptedFrom>
*   130 <http://purl.org/dc/terms/license>
*   122 <http://www.omg.org/techprocess/ab/SpecificationMetadata/contentLanguage>
     41 <https://spec.edmcouncil.org/fibo/ontology/FND/Utilities/AnnotationVocabulary/definitionOrigin>
      4 <http://www.w3.org/2000/01/rdf-schema#seeAlso>
      2 <http://www.w3.org/2000/01/rdf-schema#range>
      1 <https://spec.edmcouncil.org/fibo/ontology/FND/Utilities/AnnotationVocabulary/explanatoryNote>
      1 <http://www.w3.org/2004/02/skos/core#example>
      1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first>
      1 <http://www.omg.org/techprocess/ab/SpecificationMetadata/relatedSpecification>
      1 <http://www.omg.org/techprocess/ab/SpecificationMetadata/directSource>
?     1 <http://purl.org/dc/terms/source>

I checked range and the list:

 grep anyURI all.nt |grep -E "#range|#first"

The following props have range xsd:anyURI:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions