Skip to content

Commit 8219f27

Browse files
committed
fix(ro-crate): 🩹 define ROCrateMetadataFileDescriptor class in the ontology and use sh:targetClass
1 parent 39bd761 commit 8219f27

2 files changed

Lines changed: 15 additions & 11 deletions

File tree

rocrate_validator/profiles/ro-crate/must/1_file-descriptor_metadata.ttl

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -73,17 +73,7 @@ ro-crate:ROCrateMetadataFileDescriptorRecommendedProperties a sh:NodeShape ;
7373
sh:name "RO-Crate Metadata File Descriptor REQUIRED properties" ;
7474
sh:description """RO-Crate Metadata Descriptor MUST be defined
7575
according with the requirements details defined in [RO-Crate Metadata File Descriptor](https://www.researchobject.org/ro-crate/1.1/root-data-entity.html#ro-crate-metadata-file-descriptor)""" ;
76-
sh:target [
77-
a sh:SPARQLTarget ;
78-
sh:prefixes ro-crate:sparqlPrefixes ;
79-
sh:select """
80-
SELECT ?this
81-
WHERE {
82-
?this ?p ?o .
83-
FILTER( STRENDS(STR(?this), "ro-crate-metadata.json") )
84-
}
85-
""" ;
86-
] ;
76+
sh:targetClass ro-crate:ROCrateMetadataFileDescriptor ;
8777
sh:property [
8878
a sh:PropertyShape ;
8979
sh:name "Metadata File Descriptor entity type" ;

rocrate_validator/profiles/ro-crate/ontology.ttl

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@
3131
# # # Classes
3232
# # #################################################################
3333

34+
# Declare the ROCrateMetadataFileDescriptor class
35+
ro-crate:ROCrateMetadataFileDescriptor rdf:type owl:Class ;
36+
rdfs:subClassOf schema:CreativeWork ;
37+
rdfs:label "ROCrateMetadataFileDescriptor"@en .
38+
3439
# Declare the RootDataEntity class
3540
ro-crate:RootDataEntity rdf:type owl:Class ;
3641
rdfs:subClassOf schema:Dataset ;
@@ -65,3 +70,12 @@ ro-crate:DataEntity rdf:type owl:Class ;
6570
ro-crate:Directory rdf:type owl:Class ;
6671
rdfs:subClassOf schema:Dataset ;
6772
rdfs:label "Directory"@en .
73+
74+
75+
# # #################################################################
76+
# # # Individuals
77+
# # ##############################################################
78+
79+
# Declare the individual representing the RO-Crate Metadata File Descriptor entity
80+
ro:ro-crate-metadata.json a owl:NamedIndividual, ro-crate:ROCrateMetadataFileDescriptor .
81+

0 commit comments

Comments
 (0)