Coder Social home page Coder Social logo

dcat-ap-ch-shacl's People

Contributors

beatestermann avatar davideallavena avatar metaodi avatar retog avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

dcat-ap-ch-shacl's Issues

sh:datatype instead of sh:class for schema:URL

I think the lines 227 and 363 of the SHACL shape are incorrect.

According to the shape how it is now the following data would be valid:

@prefix ex: <https://example.org/ns#> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix schema: <https://schema.org/> .

ex:myDataset a dct:Dataset ;
  schema:image ex:imageURL .

ex:imageURL a schema:URL .

However, according to schema.org schema:URL is a datatype hence data using it should look like this:

@prefix ex: <https://example.org/ns#> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix schema: <https://schema.org/> .

ex:myDataset a dct:Dataset ;
  schema:image "http://imageURL.com"^^schema:URL .

Thus the shape should state the constraint sh:datatype instead of sh:class in the mentioned lines.

Discussion about dct:publisher

On your README you wrote under Other points to discuss :
Also, shouldn't the dct:publisher be named, rather than being an instance of foaf:Agent? Analogous questions can be asked for dcat:themeTaxonomy and foaf:homepage.

I would like to start the discussion with this issue:

I think the dct:publisher should be implemented similar to what the DCAT-AP does in it's shacl graph: https://github.com/SEMICeu/DCAT-AP/blob/master/releases/2.0.1/dcat-ap_2.0.1_shacl_shapes.ttl:

There an agent shape is added for it and the name is a mandatory property in it: see here (as copied from the DCAT-AP Shacl graph):

:Agent_Shape
    a sh:NodeShape ;
    sh:name "Agent"@en ;
    sh:property [
        sh:minCount 1 ;
        sh:nodeKind sh:Literal ;
        sh:path foaf:name ;
        sh:severity sh:Violation
    ], [
        sh:class skos:Concept ;
        sh:maxCount 1 ;
        sh:path dct:type ;
        sh:severity sh:Violation
    ] ;
    sh:targetClass foaf:Agent .

If this is implemented the name would be mandatory and this would answer your question above.
What do you think about this approach?

dcat:themeTaxonomy on the CatalogShape not mandatory on DCAT-AP-CH

In the DCAT-AP-CH it is dcat:themeTaxanomy is not mandatory for the dcat:Catalog class, so the
sh:minCount 1 ; should be removed in my opinion.

In your shape ech-0200.shacl.ttl it looks like this:

:CatalogShape
  rdf:type sh:NodeShape ;
  sh:name "Catalog"@en ;
  sh:targetClass dcat:Catalog ;
  ...
  sh:property [
      sh:path dcat:themeTaxonomy ;
      sh:class skos:Concept-Scheme ;
      sh:minCount 1 ;
      sh:severity sh:Warning ;
    ] ;

WDYT?

License?

What is the license of the published SHACL shapes? I'd like to re-use them and need to know if they are actually under an open source license. I'd propose to create a LICENSE.md file to clarify the license of this repository (I think GitHub has support to generate such a file automatically if you specify the license in the settings).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.