w3c / dxwg

Data Catalog Vocabulary (DCAT)
https://w3c.github.io/dxwg/dcat/
Other
150 stars 47 forks source link

Confused by the eg-ga example #199

Closed larsgsvensson closed 5 years ago

larsgsvensson commented 6 years ago

Hi Rob, hi Nicholas,

I've had a closer look at the profiles ontology and the examples and I think I begin to understand the model. However, I'm a bit confused by the eg-ga example. It first says (all turtles reduced to the bare minimum):

<http://pid.geoscience.gov.au/def/schema/ga/ISO19115-1-2014>
    a prof:Profile ;
    prof:resource <http://pid.geoscience.gov.au/def/schema/ga/schematron-rules-ga.sch> ,
        <http://pid.geoscience.gov.au/def/schema/ga/ISO19115-1-2014> ,
        <http://pid.geoscience.gov.au/def/schema/ga/ISO19115-3-2016> . 

That's fine. But then it goes on to say:

<http://pid.geoscience.gov.au/def/schema/ga/schematron-rules-ga.sch>
    a prof:ImplResourceDesc;
    rdfs:label "GA Profile Schematron";
    prof:resource <http://pid.geoscience.gov.au/def/schema/ga/schematron-rules-ga.sch> ;
    prof:resourceType eg:Schematron ;
    dct:format "text/xml" .

<http://pid.geoscience.gov.au/def/schema/ga/ISO19115-1-2014>
    a prof:ImplResourceDesc;
    rdfs:label "GA Profile Document";
    prof:resource <http://pid.geoscience.gov.au/def/schema/ga/schematron-rules-ga.sch> ;
    prof:resourceType eg:WebPage ;
    dct:format "text/html"  .

<http://pid.geoscience.gov.au/def/schema/ga/ISO19115-3-2016>
    a prof:ImplResourceDesc;
    rdfs:label "GA Profile XML Schema";
    prof:resource <http://pid.geoscience.gov.au/def/schema/ga/ISO19115-3-2016/gapm.xsd> ;
    prof:resourceType eg:XSDSchema ;
    dct:format "text/xml"   .

So <http://pid.geoscience.gov.au/def/schema/ga/ISO19115-1-2014> uses prof:resource to link to the three prof:ImplResourceDesc which seems OK, but then the instances of prof:ImplResourceDesc again use prof:resource to link to schematron, XSD and html documents, which I find a bit confusing, particularly since <http://pid.geoscience.gov.au/def/schema/ga/schematron-rules-ga.sch> refers to itself. Are really both <http://pid.geoscience.gov.au/def/schema/ga/ISO19115-3-2016> and the XSD file associated with it (<http://pid.geoscience.gov.au/def/schema/ga/ISO19115-3-2016/gapm.xsd>) instances of prof:ImpleResourceDesc and if so, how do I know which role they play (the first one being a more abstract descriptor and the latter being something I can really use for validation)?

Thanks for any insights,

Lars

nicholascar commented 5 years ago

This issue has now been addressed by a series of updates to the GA example (see https://www.w3.org/TR/dx-prof/#example-7-ga-profile-of-iso19115-according-to-prof-in-rdf-turtle) so this comment is no longer relevant.

@larsgsvensson are you happy with the updated example?

larsgsvensson commented 5 years ago

Yes, much happier, thank you.

I COULD start picking nits about the use of IANA-URIs vs w3id-URIs for media types, but I won't...

nicholascar commented 5 years ago

Closing after listing in plenary 2019-09-03 + 3-day wait period.