Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shapePartition like classPartition #114

Open
JervenBolleman opened this issue Jan 30, 2024 · 1 comment
Open

shapePartition like classPartition #114

JervenBolleman opened this issue Jan 30, 2024 · 1 comment

Comments

@JervenBolleman
Copy link

I would like to annotate that a dataset has elements that are grouped by a named data shape (ShACL, Shex or other).

:MyDataset a void:Dataset;
    void:shapePartition [ void:shape [  a sh:NodeShape ;
                                                                 sh:targetClass foaf:Person ] ];
    void:shapePartition [ void:shape [ a sh:NodeShape ;
                                                                  sh:targetClass foaf:Organization ]];

This would add two new object properties void:shapePartition and void:shape

void:shapePartition a owl:ObjectProperty;
    rdfs:label "shape partition";
    rdfs:comment "A subset of a void:Dataset that contains only the entities of a that conform to certain data shape.";
    rdfs:domain void:Dataset;
    rdfs:range void:Dataset;
    rdfs:subPropertyOf void:subset .

void:shape a owl:ObjectProperty;
    rdfs:label "shape";
    rdfs:comment "The shape describing a set of entities in a Dataset.";
    rdfs:domain void:Dataset;

void:shaclShape a owl:FunctionalProperty ;
   rdfs:label "ShACL shape" ;
   rdfs:comment "A ShACL shape describing a set of entities in a Dataset.";
   rdfs:subPropertyOf void:shape ;
   rdfs:range <http://www.w3.org/ns/shacl#shape> .

void:shexShape a owl:FunctionalProperty ;
   rdfs:label "ShEx shape " ;
   rdfs:comment "A ShEx shape describing a set of entitites in a Dataset" ;
   rdfs:subProeprty of void:shape ;
   rdfs:range <http://www.w3.org/ns/shex#shape> .
@tfrancart
Copy link

Very close to w3c/data-shapes#154

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants