@prefix dcat: <http://www.w3.org/ns/dcat#> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix dqv: <http://www.w3.org/ns/dqv#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<https://data.norge.no/linkml/referansemodell-gold/ReferanseGullContainer> a sh:NodeShape ;
    rdfs:comment "Toppnivåobjekt for datafila — samlar alle AP-NO- og DQV-AP-NO-entitetar." ;
    sh:closed true ;
    sh:ignoredProperties ( rdf:type ) ;
    sh:property [ sh:class dqv:QualityMeasurement ;
            sh:nodeKind sh:IRI ;
            sh:order 7 ;
            sh:path <https://data.norge.no/linkml/referansemodell-gold/kvalitetsmaalingar> ],
        [ sh:class dqv:Metric ;
            sh:nodeKind sh:IRI ;
            sh:order 6 ;
            sh:path <https://data.norge.no/linkml/referansemodell-gold/kvalitetsmaal> ],
        [ sh:class dcat:CatalogRecord ;
            sh:nodeKind sh:IRI ;
            sh:order 1 ;
            sh:path <https://data.norge.no/linkml/referansemodell-gold/katalogpostar> ],
        [ sh:class dcat:Dataset ;
            sh:nodeKind sh:IRI ;
            sh:order 2 ;
            sh:path <https://data.norge.no/linkml/referansemodell-gold/datasett> ],
        [ sh:class dqv:Dimension ;
            sh:nodeKind sh:IRI ;
            sh:order 8 ;
            sh:path <https://data.norge.no/linkml/referansemodell-gold/kvalitetsdimensjonar> ],
        [ sh:class foaf:Agent ;
            sh:nodeKind sh:IRI ;
            sh:order 5 ;
            sh:path <https://data.norge.no/linkml/referansemodell-gold/aktorar> ],
        [ sh:class dcat:DataService ;
            sh:nodeKind sh:IRI ;
            sh:order 4 ;
            sh:path <https://data.norge.no/linkml/referansemodell-gold/datatenestar> ],
        [ sh:class dcat:Distribution ;
            sh:nodeKind sh:IRI ;
            sh:order 3 ;
            sh:path <https://data.norge.no/linkml/referansemodell-gold/distribusjoner> ],
        [ sh:class dcat:Catalog ;
            sh:nodeKind sh:IRI ;
            sh:order 0 ;
            sh:path <https://data.norge.no/linkml/referansemodell-gold/katalogar> ],
        [ sh:class dqv:QualityAnnotation ;
            sh:nodeKind sh:IRI ;
            sh:order 9 ;
            sh:path <https://data.norge.no/linkml/referansemodell-gold/kvalitetsmerknader> ] ;
    sh:targetClass <https://data.norge.no/linkml/referansemodell-gold/ReferanseGullContainer> .

dcat:Catalog a sh:NodeShape ;
    rdfs:comment "Samling av datasett, datatenestar og distribusjonar." ;
    sh:closed true ;
    sh:ignoredProperties ( rdf:type ) ;
    sh:property [ sh:datatype xsd:string ;
            sh:description "Kortfatta skildring." ;
            sh:maxCount 1 ;
            sh:minCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:order 2 ;
            sh:path dct:description ],
        [ sh:description "Unik URI-identifikator." ;
            sh:maxCount 1 ;
            sh:nodeKind sh:IRI ;
            sh:order 0 ;
            sh:path dct:identifier ],
        [ sh:description "Kontaktinformasjon for ressursen." ;
            sh:maxCount 1 ;
            sh:minCount 1 ;
            sh:nodeKind sh:IRI ;
            sh:order 3 ;
            sh:path dcat:contactPoint ],
        [ sh:datatype xsd:string ;
            sh:description "Namn eller tittel." ;
            sh:maxCount 1 ;
            sh:minCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:order 1 ;
            sh:path dct:title ],
        [ sh:description "Lisens som regulerer bruken av ressursen." ;
            sh:maxCount 1 ;
            sh:nodeKind sh:IRI ;
            sh:order 5 ;
            sh:path dct:license ],
        [ sh:description "Organisasjon ansvarleg for ressursen." ;
            sh:maxCount 1 ;
            sh:minCount 1 ;
            sh:nodeKind sh:IRI ;
            sh:order 4 ;
            sh:path dct:publisher ] ;
    sh:targetClass dcat:Catalog .

dcat:CatalogRecord a sh:NodeShape ;
    rdfs:comment "Oppføring i ein katalog som skildrar ein ressurs." ;
    sh:closed true ;
    sh:ignoredProperties ( rdf:type ) ;
    sh:property [ sh:description "Unik URI-identifikator." ;
            sh:maxCount 1 ;
            sh:nodeKind sh:IRI ;
            sh:order 0 ;
            sh:path dct:identifier ],
        [ sh:datatype xsd:date ;
            sh:description "Dato for siste endring." ;
            sh:maxCount 1 ;
            sh:minCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:order 1 ;
            sh:path dct:modified ],
        [ sh:description "Ressursen som katalogposten omhandlar." ;
            sh:maxCount 1 ;
            sh:minCount 1 ;
            sh:nodeKind sh:IRI ;
            sh:order 2 ;
            sh:path foaf:primaryTopic ] ;
    sh:targetClass dcat:CatalogRecord .

dcat:DataService a sh:NodeShape ;
    rdfs:comment "Ei samling av operasjonar som gir tilgang til data via eit grensesnitt." ;
    sh:closed true ;
    sh:ignoredProperties ( rdf:type ) ;
    sh:property [ sh:description "Unik URI-identifikator." ;
            sh:maxCount 1 ;
            sh:nodeKind sh:IRI ;
            sh:order 0 ;
            sh:path dct:identifier ],
        [ sh:description "URL til rotplasseringa av endepunktet." ;
            sh:maxCount 1 ;
            sh:minCount 1 ;
            sh:nodeKind sh:IRI ;
            sh:order 4 ;
            sh:path dcat:endpointURL ],
        [ sh:datatype xsd:string ;
            sh:description "Namn eller tittel." ;
            sh:maxCount 1 ;
            sh:minCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:order 1 ;
            sh:path dct:title ],
        [ sh:description "Kontaktinformasjon for ressursen." ;
            sh:maxCount 1 ;
            sh:minCount 1 ;
            sh:nodeKind sh:IRI ;
            sh:order 2 ;
            sh:path dcat:contactPoint ],
        [ sh:description "Organisasjon ansvarleg for ressursen." ;
            sh:maxCount 1 ;
            sh:minCount 1 ;
            sh:nodeKind sh:IRI ;
            sh:order 3 ;
            sh:path dct:publisher ] ;
    sh:targetClass dcat:DataService .

dcat:Dataset a sh:NodeShape ;
    rdfs:comment "Ei samling av data, utgitt eller kuratert av ei einskild kjelde." ;
    sh:closed true ;
    sh:ignoredProperties ( rdf:type ) ;
    sh:property [ sh:datatype xsd:string ;
            sh:description "Kortfatta skildring." ;
            sh:maxCount 1 ;
            sh:minCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:order 2 ;
            sh:path dct:description ],
        [ sh:description "Organisasjon ansvarleg for ressursen." ;
            sh:maxCount 1 ;
            sh:minCount 1 ;
            sh:nodeKind sh:IRI ;
            sh:order 4 ;
            sh:path dct:publisher ],
        [ sh:description "Kontaktinformasjon for ressursen." ;
            sh:maxCount 1 ;
            sh:minCount 1 ;
            sh:nodeKind sh:IRI ;
            sh:order 3 ;
            sh:path dcat:contactPoint ],
        [ sh:datatype xsd:string ;
            sh:description "Namn eller tittel." ;
            sh:maxCount 1 ;
            sh:minCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:order 1 ;
            sh:path dct:title ],
        [ sh:description "Hovudkategori for datasettet." ;
            sh:maxCount 1 ;
            sh:minCount 1 ;
            sh:nodeKind sh:IRI ;
            sh:order 5 ;
            sh:path dcat:theme ],
        [ sh:description "Unik URI-identifikator." ;
            sh:maxCount 1 ;
            sh:nodeKind sh:IRI ;
            sh:order 0 ;
            sh:path dct:identifier ],
        [ sh:description "Lisens som regulerer bruken av ressursen." ;
            sh:maxCount 1 ;
            sh:nodeKind sh:IRI ;
            sh:order 6 ;
            sh:path dct:license ] ;
    sh:targetClass dcat:Dataset .

dcat:Distribution a sh:NodeShape ;
    rdfs:comment "Ei spesifikk representasjon av eit datasett." ;
    sh:closed true ;
    sh:ignoredProperties ( rdf:type ) ;
    sh:property [ sh:description "URL for å få tilgang til datasettet." ;
            sh:maxCount 1 ;
            sh:minCount 1 ;
            sh:nodeKind sh:IRI ;
            sh:order 1 ;
            sh:path dcat:accessURL ],
        [ sh:description "Unik URI-identifikator." ;
            sh:maxCount 1 ;
            sh:nodeKind sh:IRI ;
            sh:order 0 ;
            sh:path dct:identifier ] ;
    sh:targetClass dcat:Distribution .

dqv:Dimension a sh:NodeShape ;
    rdfs:comment "Ein kategori av kvalitetsegenskapar for data." ;
    sh:closed true ;
    sh:ignoredProperties ( rdf:type ) ;
    sh:property [ sh:description "Unik URI-identifikator." ;
            sh:maxCount 1 ;
            sh:nodeKind sh:IRI ;
            sh:order 0 ;
            sh:path dct:identifier ] ;
    sh:targetClass dqv:Dimension .

dqv:Metric a sh:NodeShape ;
    rdfs:comment "Eit mål for å evaluere kvaliteten til ein ressurs." ;
    sh:closed true ;
    sh:ignoredProperties ( rdf:type ) ;
    sh:property [ sh:description "Unik URI-identifikator." ;
            sh:maxCount 1 ;
            sh:nodeKind sh:IRI ;
            sh:order 0 ;
            sh:path dct:identifier ] ;
    sh:targetClass dqv:Metric .

dqv:QualityAnnotation a sh:NodeShape ;
    rdfs:comment "Ei kvalitetsvurdering av ein ressurs." ;
    sh:closed true ;
    sh:ignoredProperties ( rdf:type ) ;
    sh:property [ sh:description "Unik URI-identifikator." ;
            sh:maxCount 1 ;
            sh:nodeKind sh:IRI ;
            sh:order 0 ;
            sh:path dct:identifier ] ;
    sh:targetClass dqv:QualityAnnotation .

dqv:QualityMeasurement a sh:NodeShape ;
    rdfs:comment "Resultat av å evaluere eit datasett mot eit kvalitetsmål." ;
    sh:closed true ;
    sh:ignoredProperties ( rdf:type ) ;
    sh:property [ sh:description "Unik URI-identifikator." ;
            sh:maxCount 1 ;
            sh:nodeKind sh:IRI ;
            sh:order 0 ;
            sh:path dct:identifier ] ;
    sh:targetClass dqv:QualityMeasurement .

foaf:Agent a sh:NodeShape ;
    rdfs:comment "Ein aktør (person, organisasjon eller programvaresystem)." ;
    sh:closed true ;
    sh:ignoredProperties ( rdf:type ) ;
    sh:property [ sh:description "Unik URI-identifikator." ;
            sh:maxCount 1 ;
            sh:nodeKind sh:IRI ;
            sh:order 0 ;
            sh:path dct:identifier ],
        [ sh:datatype xsd:string ;
            sh:description "Namn på aktøren." ;
            sh:maxCount 1 ;
            sh:minCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:order 1 ;
            sh:path foaf:name ] ;
    sh:targetClass foaf:Agent .


