Skip to content

Commit

Permalink
Update shapes
Browse files Browse the repository at this point in the history
  • Loading branch information
claudenirmf committed Apr 14, 2023
1 parent 67ce77f commit f1c0ee7
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 7 deletions.
1 change: 0 additions & 1 deletion shapes/Catalog-shape.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@
sh:path dcat:themeTaxonomy ;
sh:nodeKind sh:IRI ;
dash:editor dash:URIEditor ;
dash:viewer dash:LabelViewer ;
]
.
8 changes: 6 additions & 2 deletions shapes/Dataset-shape.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,13 @@
sh:name "Storage URL" ;
sh:description "A URL of a service in which the data and metadata of dataset are stored." ;
sh:path ocmv:storageUrl ;
sh:or (
[ sh:datatype xsd:anyURI ; ]
[ sh:nodeKind sh:Literal ; ]
) ;
sh:pattern "^https?://" ;
dash:editor dash:URIEditor ;
dash:viewer dash:URIViewer ;
dash:editor dash:TextFieldEditor ;
dash:viewer dash:LiteralViewer ;
],
[
sh:name "Contact Points" ;
Expand Down
6 changes: 3 additions & 3 deletions shapes/Distribution-shape.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
sh:path ocmv:isComplete ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:in ( "true"^^xsd:boolean "false"^^xsd:boolean ) ;
dash:editor dash:EnumSelectEditor ;
dash:viewer dash:LiteralViewer ;
sh:datatype xsd:boolean ;
# dash:editor dash:BooleanSelectEditor ;
# dash:viewer dash:LiteralViewer ;
] ,
[
sh:name "Download URL" ;
Expand Down
25 changes: 25 additions & 0 deletions shapes/Resource-shape.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix fdpo: <https://w3id.org/fdp/fdp-o#> .

<https://w3id.org/ontouml-models/shape/Resource> a sh:NodeShape ;
sh:targetClass dcat:Resource ;
Expand Down Expand Up @@ -67,6 +68,30 @@
dash:editor dash:URIEditor ;
dash:viewer dash:LabelViewer ;
],
[
sh:name "Metadata Modified" ;
sh:description "Date on which the resource's metadata was changed.";
sh:path fdpo:metadataModified ;
sh:or (
[ sh:datatype xsd:dateTime ; ]
[ sh:datatype xsd:date ; ]
[ sh:datatype xsd:gYearMonth ; ]
[ sh:datatype xsd:gYear ; ]
) ;
dash:viewer dash:LiteralViewer ;
],
[
sh:name "Metadata Issued" ;
sh:description "Date of formal issuance of the resource's metadata.";
sh:path fdpo:metadataIssued ;
sh:or (
[ sh:datatype xsd:dateTime ; ]
[ sh:datatype xsd:date ; ]
[ sh:datatype xsd:gYearMonth ; ]
[ sh:datatype xsd:gYear ; ]
) ;
dash:viewer dash:LiteralViewer ;
],
[
sh:name "Modified" ;
sh:description "Date on which the resource was changed.";
Expand Down
1 change: 0 additions & 1 deletion shapes/SemanticArtefact-shape.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@
sh:description "The type of the model according to how general it is. Allowed values: ocmv:Core for core ontologies, ocmv:Domain for domain ontologies, and ocmv:Application for application ontologies." ;
sh:path ocmv:ontologyType ;
sh:nodeKind sh:IRI ;
sh:minCount 1 ;
sh:maxCount 3 ;
sh:in (
ocmv:Domain
Expand Down

0 comments on commit f1c0ee7

Please sign in to comment.