Skip to content

Latest commit

 

History

History
748 lines (589 loc) · 33.8 KB

ProvidedCHO.md

File metadata and controls

748 lines (589 loc) · 33.8 KB

Shapes definitions for edm:ProvidedCHO class

This document was generated from the shapes file using this software

This shape gathers all constraints that apply to a edm:ProvidedCHO class

The following constraints apply to shape or are not restricted to a specific property:

Constraintsclosure, correlation

The following table shows an overview of the constraints divided per property:

Property Cardinality Value Type Constraints
dc:contributor 0..*
dc:coverage 0..*
dc:creator 0..*
dc:date 0..*
dc:description 0..*
dc:format 0..*
dc:identifier 0..* type
dc:language 0..* type
dc:publisher 0..*
dc:relation 0..*
dc:rights 0..*
dc:source 0..*
dc:subject 0..*
dc:title 0..* Literal
dc:type 0..*
dct:alternative 0..* Literal
dct:conformsTo 0..*
dct:created 0..*
dct:extent 0..*
dct:hasFormat 0..*
dct:hasPart 0..*
dct:hasVersion 0..*
dct:isFormatOf 0..*
dct:isPartOf 0..*
dct:isReferencedBy 0..*
dct:isReplacedBy 0..*
dct:isRequiredBy 0..*
dct:isVersionOf 0..*
dct:issued 0..*
dct:medium 0..*
dct:provenance 0..*
dct:references 0..*
dct:replaces 0..*
dct:requires 0..*
dct:spatial 0..*
dct:tableOfContents 0..* Literal
dct:temporal 0..*
edm:currentLocation 0..* IRI
edm:hasMet 0..* IRI
edm:hasType 0..*
edm:incorporates 0..* IRI
edm:isDerivativeOf 0..* IRI
edm:isNextInSequence 0..* IRI
edm:isRelatedTo 0..*
edm:isRepresentationOf 0..1 IRI
edm:isSimilarTo 0..* IRI
edm:isSuccessorOf 0..* IRI
edm:realizes 0..* IRI
edm:type 1..1 Literal values
edm:ugc 0..* Literal
owl:sameAs 0..* IRI

Shape Body


Shape body in Turtle syntax:

<http://www.europeana.eu/schemas/edm/shapes/external/ProvidedCHO#base>
  a sh:Shape ;
  rdfs:subClassOf rdfs:Resource ;
  sh:description """This shape gathers all constraints that apply to a 
                    edm:ProvidedCHO class""" ;

  sh:scopeClass edm:ProvidedCHO ;

  # class level constraints
  sh:constraint      <ProvidedCHO#closure> ;
  sh:constraint      <ProvidedCHO#correlation> ;

  # DC properties
  sh:property        <ProvidedCHO/dc_identifier#type> ;
  sh:property        <ProvidedCHO/dc_language#type> ;
  sh:property        <ProvidedCHO/dc_title#type> ;

  # DCTERMS properties
  sh:property        <ProvidedCHO/dct_alternative#type> ;
  sh:property        <ProvidedCHO/dct_tableOfContents#type> ;

  # EDM properties
  sh:property        <ProvidedCHO/edm_currentLocation#type> ;
  sh:property        <ProvidedCHO/edm_hasMet#type> ;
  sh:property        <ProvidedCHO/edm_incorporates#type> ;
  sh:property        <ProvidedCHO/edm_isDerivativeOf#type> ;
  sh:property        <ProvidedCHO/edm_isNextInSequence#type> ;
  sh:property        <ProvidedCHO/edm_isRepresentationOf#type> ;
  sh:property        <ProvidedCHO/edm_isRepresentationOf#cardinality> ;
  sh:property        <ProvidedCHO/edm_isSimilarTo#type> ;
  sh:property        <ProvidedCHO/edm_isSuccessorOf#type> ;
  sh:property        <ProvidedCHO/edm_realizes#type> ;
  sh:property        <ProvidedCHO/edm_type#type> ;
  sh:property        <ProvidedCHO/edm_type#cardinality> ;
  sh:property        <ProvidedCHO/edm_type#values> ;
  sh:property        <ProvidedCHO/edm_ugc#type> ;

  # OWL properties
  sh:property        <ProvidedCHO/owl_sameAs#type> ;
.

Shape level constraints


descriptionAn edm:ProvidedCHO resource must be defined using only the properties defined in EDM for Provided CHOs
subjectR-206-DEFINE-ALLOWED-NAMESPACES
typehttp://www.europeana.eu/schemas/edm/shapes/categories#closure
_Shape definition in Turtle syntax:_
<http://www.europeana.eu/schemas/edm/shapes/external/ProvidedCHO#closure>
  sh:description """An edm:ProvidedCHO resource must be defined using only the 
                    properties defined in EDM for Provided CHOs""" ;
  dc:type esc:closure ;
  dc:relation "R-206-DEFINE-ALLOWED-NAMESPACES" ;
  sh:closed true ;
  sh:ignoredProperties (
    rdf:type
    dc:contributor dc:coverage dc:creator dc:date dc:description dc:format 
    dc:identifier dc:language dc:publisher dc:relation dc:rights dc:source
    dc:subject dc:title dc:type dct:alternative dct:conformsTo dct:created 
    dct:extent dct:hasFormat dct:hasPart dct:hasVersion dct:isFormatOf 
    dct:isPartOf dct:isReferencedBy dct:isReplacedBy dct:isRequiredBy
    dct:issued dct:isVersionOf dct:medium dct:provenance dct:references
    dct:replaces dct:requires dct:spatial dct:tableOfContents dct:temporal
    edm:currentLocation edm:hasMet edm:hasType edm:incorporates 
    edm:isDerivativeOf edm:isNextInSequence edm:isRelatedTo 
    edm:isRepresentationOf edm:isSimilarTo edm:isSuccessorOf edm:realizes 
    edm:type edm:ugc
    owl:sameAs
  ) ;
.
descriptionCheck that if edm:ProvidedCHO is present, at least: one dc:title or sh:description should be present; one dc:subject or dc:type or dc:coverage or dcterms:spatial and edm:type should be present
subjectR-67-BOOLEAN-PROPERTY-PATTERNS, R-68-REQUIRED-PROPERTIES
typehttp://www.europeana.eu/schemas/edm/shapes/categories#correlation
_Shape definition in Turtle syntax:_
<http://www.europeana.eu/schemas/edm/shapes/external/ProvidedCHO#correlation>
  a sh:Constraint ;
  sh:description """Check that if edm:ProvidedCHO is present, at least: one 
                    dc:title or sh:description should be present; one dc:subject
                    or dc:type or dc:coverage or dcterms:spatial and edm:type 
                    should be present""" ;
  dc:type esc:correlation ;
  dc:relation "R-68-REQUIRED-PROPERTIES"
           , "R-67-BOOLEAN-PROPERTY-PATTERNS" ;
  sh:message """At least: one dc:title or sh:description; one dc:subject or 
                dc:type or dc:coverage or dcterms:spatial; and one edm:type 
                should be present""" ;
  sh:and (
    [
      sh:constraint [
        sh:or (
          [ sh:property [ sh:predicate dc:title       ; sh:minCount 1 ; ] ]
          [ sh:property [ sh:predicate dc:description ; sh:minCount 1 ; ] ]
        )
      ]
    ]
    [
      sh:constraint [
        sh:or (
          [ sh:property [ sh:predicate dc:subject  ; sh:minCount 1 ; ] ]
          [ sh:property [ sh:predicate dc:type     ; sh:minCount 1 ; ] ]
          [ sh:property [ sh:predicate dc:coverage ; sh:minCount 1 ; ] ]
          [ sh:property [ sh:predicate dct:spatial ; sh:minCount 1 ; ] ]
        )
      ]
    ]
  ) ;
.







description
subject
type
_Shape definition in Turtle syntax:_
<http://www.europeana.eu/schemas/edm/shapes/external/ProvidedCHO/dc_identifier#type>
  a sh:PropertyConstraint ;
  sh:predicate dc:identifier ;
  sh:nodeKind sh:Literal ;
.

description
subject
type
_Shape definition in Turtle syntax:_
<http://www.europeana.eu/schemas/edm/shapes/external/ProvidedCHO/dc_language#type>
  a sh:PropertyConstraint ;
  sh:predicate dc:language ;
  sh:nodeKind sh:Literal ;
.






description
subject
typehttp://www.europeana.eu/schemas/edm/shapes/categories#type
_Shape definition in Turtle syntax:_
<http://www.europeana.eu/schemas/edm/shapes/external/ProvidedCHO/dc_title#type>
  a sh:PropertyConstraint ;
  dc:type esc:type ;
  sh:predicate dc:title ;
  sh:nodeKind sh:Literal ;
.


description
subject
typehttp://www.europeana.eu/schemas/edm/shapes/categories#type
_Shape definition in Turtle syntax:_
<http://www.europeana.eu/schemas/edm/shapes/external/ProvidedCHO/dct_alternative#type>
  a sh:PropertyConstraint ;
  dc:type esc:type ;
  sh:predicate dct:alternative ;
  sh:nodeKind sh:Literal ;
.




















description
subject
typehttp://www.europeana.eu/schemas/edm/shapes/categories#type
_Shape definition in Turtle syntax:_
<http://www.europeana.eu/schemas/edm/shapes/external/ProvidedCHO/dct_tableOfContents#type>
  a sh:PropertyConstraint ;
  dc:type esc:type ;
  sh:predicate dct:tableOfContents ;
  sh:nodeKind sh:Literal ;
.


description
subject
typehttp://www.europeana.eu/schemas/edm/shapes/categories#type
_Shape definition in Turtle syntax:_
<http://www.europeana.eu/schemas/edm/shapes/external/ProvidedCHO/edm_currentLocation#type>
  a sh:PropertyConstraint ;
  dc:type esc:type ;
  sh:predicate edm:currentLocation ;
  sh:nodeKind sh:IRI ;
.

description
subject
typehttp://www.europeana.eu/schemas/edm/shapes/categories#type
_Shape definition in Turtle syntax:_
<http://www.europeana.eu/schemas/edm/shapes/external/ProvidedCHO/edm_hasMet#type>
  a sh:PropertyConstraint ;
  dc:type esc:type ;
  sh:predicate edm:hasMet ;
  sh:nodeKind sh:IRI ;
.


description
subject
typehttp://www.europeana.eu/schemas/edm/shapes/categories#type
_Shape definition in Turtle syntax:_
<http://www.europeana.eu/schemas/edm/shapes/external/ProvidedCHO/edm_incorporates#type>
  a sh:PropertyConstraint ;
  dc:type esc:type ;
  sh:predicate edm:incorporates ;
  sh:nodeKind sh:IRI ;
.

description
subject
typehttp://www.europeana.eu/schemas/edm/shapes/categories#type
_Shape definition in Turtle syntax:_
<http://www.europeana.eu/schemas/edm/shapes/external/ProvidedCHO/edm_isDerivativeOf#type>
  a sh:PropertyConstraint ;
  dc:type esc:type ;
  sh:predicate edm:isDerivativeOf ;
  sh:nodeKind sh:IRI ;
.

description
subject
typehttp://www.europeana.eu/schemas/edm/shapes/categories#type
_Shape definition in Turtle syntax:_
<http://www.europeana.eu/schemas/edm/shapes/external/ProvidedCHO/edm_isNextInSequence#type>
  a sh:PropertyConstraint ;
  dc:type esc:type ;
  sh:predicate edm:isNextInSequence ;
  sh:nodeKind sh:IRI ;
.


description
subjectR-211-CARDINALITY-CONSTRAINTS
typehttp://www.europeana.eu/schemas/edm/shapes/categories#cardinality
_Shape definition in Turtle syntax:_
<http://www.europeana.eu/schemas/edm/shapes/external/ProvidedCHO/edm_isRepresentationOf#cardinality>
  a sh:PropertyConstraint ;
  dc:type esc:cardinality ;
  dc:relation "R-211-CARDINALITY-CONSTRAINTS" ;
  sh:predicate edm:isRepresentationOf ;
  sh:minCount 0 ;
  sh:maxCount 1 ;
.
description
subject
typehttp://www.europeana.eu/schemas/edm/shapes/categories#type
_Shape definition in Turtle syntax:_
<http://www.europeana.eu/schemas/edm/shapes/external/ProvidedCHO/edm_isRepresentationOf#type>
  a sh:PropertyConstraint ;
  dc:type esc:type ;
  sh:predicate edm:isRepresentationOf ;
  sh:nodeKind sh:IRI ;
.

description
subject
typehttp://www.europeana.eu/schemas/edm/shapes/categories#type
_Shape definition in Turtle syntax:_
<http://www.europeana.eu/schemas/edm/shapes/external/ProvidedCHO/edm_isSimilarTo#type>
  a sh:PropertyConstraint ;
  dc:type esc:type ;
  sh:predicate edm:isSimilarTo ;
  sh:nodeKind sh:IRI ;
.

description
subject
typehttp://www.europeana.eu/schemas/edm/shapes/categories#type
_Shape definition in Turtle syntax:_
<http://www.europeana.eu/schemas/edm/shapes/external/ProvidedCHO/edm_isSuccessorOf#type>
  a sh:PropertyConstraint ;
  dc:type esc:type ;
  sh:predicate edm:isSuccessorOf ;
  sh:nodeKind sh:IRI ;
.

description
subject
typehttp://www.europeana.eu/schemas/edm/shapes/categories#type
_Shape definition in Turtle syntax:_
<http://www.europeana.eu/schemas/edm/shapes/external/ProvidedCHO/edm_realizes#type>
  a sh:PropertyConstraint ;
  dc:type esc:type ;
  sh:predicate edm:realizes ;
  sh:nodeKind sh:IRI ;
.

description
subjectR-211-CARDINALITY-CONSTRAINTS
typehttp://www.europeana.eu/schemas/edm/shapes/categories#cardinality
_Shape definition in Turtle syntax:_
<http://www.europeana.eu/schemas/edm/shapes/external/ProvidedCHO/edm_type#cardinality>
  a sh:PropertyConstraint ;
  dc:type esc:cardinality ;
  dc:relation "R-211-CARDINALITY-CONSTRAINTS" ;
  sh:predicate edm:type ;
  sh:minCount 1 ;
  sh:maxCount 1 ;
.
description
subject
typehttp://www.europeana.eu/schemas/edm/shapes/categories#type
_Shape definition in Turtle syntax:_
<http://www.europeana.eu/schemas/edm/shapes/external/ProvidedCHO/edm_type#type>
  a sh:PropertyConstraint ;
  dc:type esc:type ;
  sh:predicate edm:type ;
  sh:nodeKind sh:Literal ;
.
descriptionThe value of edm:type must match one of: TEXT, VIDEO, SOUND, IMAGE, 3D
subjectR-30-DEFINE-VALUE-LISTS
typehttp://www.europeana.eu/schemas/edm/shapes/categories#values
_Shape definition in Turtle syntax:_
<http://www.europeana.eu/schemas/edm/shapes/external/ProvidedCHO/edm_type#values>
  a sh:PropertyConstraint ;
  dc:type esc:values ;
  sh:description """The value of edm:type must match one of: 
                    TEXT, VIDEO, SOUND, IMAGE, 3D""" ;
# sh:description """Check that edm:type matches the value 
#                   TEXT, VIDEO, SOUND, IMAGE, 3D""" ;
  dc:relation "R-30-DEFINE-VALUE-LISTS" ;
  sh:predicate edm:type ;
  sh:in ( "TEXT" "VIDEO" "SOUND" "IMAGE" "3D" ) ;
.

description
subject
typehttp://www.europeana.eu/schemas/edm/shapes/categories#type
_Shape definition in Turtle syntax:_
<http://www.europeana.eu/schemas/edm/shapes/external/ProvidedCHO/edm_ugc#type>
  a sh:PropertyConstraint ;
  dc:type esc:type ;
  sh:predicate edm:ugc ;
  sh:nodeKind sh:Literal ;
.

description
subject
typehttp://www.europeana.eu/schemas/edm/shapes/categories#type
_Shape definition in Turtle syntax:_
<http://www.europeana.eu/schemas/edm/shapes/external/ProvidedCHO/owl_sameAs#type>
  a sh:PropertyConstraint ;
  dc:type esc:type ;
  sh:predicate owl:sameAs ;
  sh:nodeKind sh:IRI ;
.