UKGovLD / registry-core

Linked data registry - core application and example UI
https://github.com/UKGovLD/registry-core/wiki
Apache License 2.0
23 stars 9 forks source link

Error in reg: ontology? Is reg:Delegated a subclass of reg:RegisterItem? #56

Closed 6a6d74 closed 9 years ago

6a6d74 commented 9 years ago

The reg: ontology indicates that reg:Delegated is a subclass of reg:RegisterItem (see line 398 of registryVocab.ttl).

However, in usage, instances of reg:Delegated (and subclasses) appear to be being used as entities; e.g.

<http://registry.it.csiro.au/ogc/doc/gml-jp2/_1.0>
        a                  reg:RegisterItem ;
        rdfs:label         "GML JPEG 2000 v1.0" ;
        dct:dateAccepted   "2015-04-22T11:42:39.563Z"^^xsd:dateTime ;
        dct:dateSubmitted  "2015-04-22T11:42:17.751Z"^^xsd:dateTime ;
        dct:description    "OpenGIS GML in JPEG 2000 for Geographic Imagery Encoding Specification v1.0" ;
        reg:definition     [ reg:entity       <http://registry.it.csiro.au/ogc/doc/gml-jp2/1.0> ;
                             reg:sourceGraph  <http://registry.it.csiro.au/ogc/doc/gml-jp2/_1.0:1#graph>
                           ] ;
        reg:itemClass      reg:NamespaceForward , reg:Delegated ;
        reg:notation       "1.0" ;
        reg:register       <http://registry.it.csiro.au/ogc/doc/gml-jp2> ;
        reg:status         reg:statusExperimental ;
        reg:submitter      [ foaf:name    "Simon Cox" ;
                             foaf:openid  <...>
                           ] ;
        owl:versionInfo    2 .

<http://registry.it.csiro.au/ogc/doc/gml-jp2/1.0>
        a                     reg:Delegated , reg:NamespaceForward ;
        rdfs:label            "GML JPEG 2000 v1.0" ;
        dct:description       "OpenGIS GML in JPEG 2000 for Geographic Imagery Encoding Specification v1.0" ;
        reg:delegationTarget  <http://portal.opengeospatial.org/files/?artifact_id=13252> ;
        reg:forwardingCode    "307" ;
        reg:notation          "1.0" .

(example from register of OGC resources managed by CSIRO)

This is leading to confusion about the right way to register a single externally-managed item - see thread on the ukgovld-software google group.

6a6d74 commented 9 years ago

@der - can you comment? Many thanks.

der commented 9 years ago

Agreed and fixed.

In particular, as shown in the diagram at https://github.com/UKGovLD/registry-core/wiki/Principles-and-concepts#delegation some subclasses of reg:Delegated are also intended to be registers and the logic of the data model means a Register is just another entity with an associated RegisterItem, not itself an item.

I've updated the registry vocab in both the ukl-registry-poc and registry-core projects. I've redirected the purl to point to the latter which is our intended long term master for such things.

Please close issue if you are happy with this.

dr-shorthair commented 9 years ago

That helps. My confusion was pretty much entirely due to my perhaps excessive diligence in looking at the ontology rather than sticking with the LDR documentation :-(

6a6d74 commented 9 years ago

@dr-shorthair - not reading documentation? surely not! ... that said, I think the documentation is probably OK and we can use the issue you raised as the basis of an FAQ.

@der - I think the changes you made have resolved the issue. Many thanks for speedy response.

Closing the issue now.