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

Feature/datakbse 187 add manifest terms #289

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions source/vocab/base.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
@prefix bflc: <http://id.loc.gov/ontologies/bflc/> .
@prefix sdo: <http://schema.org/> .
@prefix madsrdf: <http://www.loc.gov/mads/rdf/v1#> .
@prefix iiif_pres3: <http://iiif.io/api/presentation/3#> .

@prefix : <https://id.kb.se/vocab/> .

Expand Down Expand Up @@ -160,7 +161,7 @@ rdf:type a owl:ObjectProperty;
rdfs:label "label"@en, "benämning"@sv;
rdfs:domain :Resource ;
:category :heuristicIdentifier ;
owl:equivalentProperty rdfs:label, sdo:name .
owl:equivalentProperty rdfs:label, sdo:name, iiif_pres3:label .

:comment a owl:DatatypeProperty;
rdfs:label "comment"@en, "kommentar"@sv;
Expand Down Expand Up @@ -193,7 +194,7 @@ rdf:type a owl:ObjectProperty;
:value a owl:DatatypeProperty;
rdfs:label "value"@en, "värde"@sv;
rdfs:domain :Resource;
owl:equivalentProperty rdf:value .
owl:equivalentProperty rdf:value, iiif_pres3:value .

:seeAlso a owl:ObjectProperty;
rdfs:label "se även"@sv;
Expand Down
2 changes: 1 addition & 1 deletion source/vocab/files-packages-representations.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
:includes a owl:ObjectProperty ;
rdfs:label "includes"@en, "inkluderar"@sv ;
sdo:domainIncludes :FilePackage, :MediaObject, :Representation ;
sdo:rangeIncludes :MediaObject, :Representation ;
sdo:rangeIncludes :MediaObject, :Representation, :Manifest ;
owl:equivalentProperty relsubtype:inc ; # TODO: super-properties of relsubtype:inc instead?
owl:inverseOf :includedIn ;
rdfs:subPropertyOf :hasPart .
Expand Down
117 changes: 117 additions & 0 deletions source/vocab/iiif-presentation-annotations.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
@prefix iiif_pres3: <http://iiif.io/api/presentation/3#> . # Funkar denna urin?
@prefix oa: <http://www.w3.org/ns/oa#> . # Funkar denna urin?
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix sdo: <http://schema.org/> .
@prefix dc: <http://purl.org/dc/terms/> .
@prefix bf2: <http://id.loc.gov/ontologies/bibframe/> .
@prefix relsubtype: <http://id.loc.gov/vocabulary/preservation/relationshipSubType/> .
@prefix : <https://id.kb.se/vocab/> .

##
# IIIF PRESENTATION API 3.0 and Web Annotation Data Model

:Manifest a owl:Class ;
:category :pending ;
rdfs:label "Manifest"@en, "Manifest"@sv ;
owl:equivalentClass iiif_pres3:Manifest ;
rdfs:subClassOf :Embodiment ;
rdfs:subClassOf [ a owl:Restriction;
owl:onProperty :items; owl:allValuesFrom :Canvas ] .

:Canvas a owl:Class ;
:category :pending ;
rdfs:label "Canvas"@en, "Canvas"@sv ;
owl:equivalentClass iiif_pres3:Canvas ;
# rdfs:subClassOf :Embodiment ; # Canvas motsv ju en sida av ett verk, men oxå en bild som är ett eget verk. Kan vi hitta en lämplig superklass?
rdfs:subClassOf [ a owl:Restriction;
owl:onProperty :items; owl:allValuesFrom :AnnotationPage ] .

:AnnotationPage a owl:Class ;
:category :pending ;
rdfs:label "AnnotationPage"@en, "Annoteringssida"@sv ;
owl:equivalentClass iiif_pres3:AnnotationPage ;
# rdfs:subClassOf :Embodiment ; # En samlingspunkt för annoteringar. Ex. en och samma video men olika annoteringar för
# textningar --> dom blir olika AnnotationPage under en och sammma Canvas. Kan vi hitta en lämplig superklass?
rdfs:subClassOf [ a owl:Restriction ;
owl:onProperty :items; owl:allValuesFrom :Annotation ] .

:Annotation a owl:Class ;
:category :pending ;
rdfs:label "Annotation"@en, "Annotering"@sv ;
owl:equivalentClass iiif_pres3:Annotation, oa:Annotation .
# Lämplig superklass?

:Image owl:equivalentClass :StillImage .
:Video owl:equivalentClass :MovingImage .

# TODO :Range a owl:Class ; --> Behov kommer med Tidningar och Visa
# TODO :structures a owl:ObjectProperty ; --> Behov kommer med Tidningar och Visa
# TODO :annotations a owl:ObjectProperty ; --> Behov kommer med Tidningar och Visa

:items a owl:ObjectProperty ; # Begreppskrock med itemOf, hasItem och Item?
:category :pending ;
rdfs:label "items"@en, "element"@sv ; # Begreppskrock med itemOf, hasItem och Item?
sdo:domainIncludes :Manifest, :Canvas, :AnnotationPage ;
sdo:rangeIncludes :Canvas, :AnnotationPage, :Annotation ;
owl:equivalentProperty :includes . # Kan de vara equivalentProperty när de inte har samma range och domain? Vilken annan relation?
# TODO owl:inverseOf :target ? # eller partOf? En annotering som pekar ut ett Manifest eller Canvas, men inte AnnotationPage

:motivation a owl:DatatypeProperty ; # NOTE: Ett visst antal möjliga värden; painting, supplementing etc - Kan vi ha DatatypeProperty?
:category :pending ;
rdfs:label "motivation"@en, "motivering"@sv ;
rdfs:domain :Annotation ;
owl:equivalentProperty oa:motivation .

:metadata a owl:DatatypeProperty ; # Behöver vi tänka nåt på språktaggarna för label? Vi har tagit bort det pga ej obligatoriskt
:category :pending ;
rdfs:label "metadata"@en, "metadata"@sv ;
rdfs:domain :Manifest ;
owl:equivalentProperty iiif_pres3:metadata .

:profile a owl:ObjectProperty ;
:category :pending ;
rdfs:label "profile"@en, "profil"@sv ;
rdfs:domain iiif_pres3:ImageService3 ;
owl:equivalentProperty iiif_pres3:profile .

:service a owl:ObjectProperty;
:category :pending ;
rdfs:label "service"@en, "tjänst"@sv ;
owl:domainIncludes :Image, :Video, :Audio, :Text ;
owl:equivalentProperty iiif_pres3:service .

:target a owl:ObjectProperty ;
:category :pending ;
rdfs:label "target"@en, "mål"@sv ;
rdfs:domain :Annotation ;
rdfs:range :Canvas ;
owl:equivalentProperty oa:target .

:body a owl:ObjectProperty ;
:category :pending ;
rdfs:label "body"@en ; # TODO: Svensk label?
rdfs:domain :Annotation ;
owl:rangeIncludes :Image, :Video, :Audio, :Text ;
owl:equivalentProperty oa:body .

:height a owl:DatatypeProperty ; # OBS! Krockar med kbv:height. iiif_pres3:height är endast för digitala objekt
:category :pending ;
rdfs:label "height"@en, "höjd"@sv ;
owl:domainIncludes :Canvas, :Image, :Video ;
# rdfs:range :Integer ;
owl:equivalentProperty iiif_pres3:height .

:width a owl:DatatypeProperty ; # OBS! Krockar med kbv:width. iiif_pres3:width är endast för digitala objekt
:category :pending ;
rdfs:label "width"@en, "bredd"@sv ;
owl:domainIncludes :Canvas, :Image, :Video ;
# rdfs:range :Integer ;
owl:equivalentProperty iiif_pres3:width .

# TODO: painting, supplementing som värden för motivation
# TODO: format?
# TODO: thumbnail
7 changes: 4 additions & 3 deletions source/vocab/things.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

@prefix : <https://id.kb.se/vocab/> .
@prefix marc: <https://id.kb.se/marc/> .
@prefix iiif_pres3: <http://iiif.io/api/presentation/3#> .


# TODO: List top concepts to provide interfaces with:
Expand Down Expand Up @@ -199,7 +200,7 @@
:format a owl:ObjectProperty;
rdfs:label "format"@en, "format"@sv;
ptg:abstract true ;
owl:equivalentProperty dc:format .
owl:equivalentProperty dc:format, iiif_pres3:format .

:BookFormat a owl:Class;
rdfs:label "Book format"@en, "Bokformat"@sv;
Expand Down Expand Up @@ -234,7 +235,7 @@
skos:definition "Resurs uttryckt i en hörbar form, inklusive musik och andra ljud."@sv;
rdfs:subClassOf :Work;
skos:exactMatch rdamedia:1001 ; # "audio"
owl:equivalentClass dctype:Sound, bf2:Audio .
owl:equivalentClass dctype:Sound, bf2:Audio, iiif_pres3:Audio .

:Cartography a owl:Class;
rdfs:label "Karta"@sv;
Expand Down Expand Up @@ -308,7 +309,7 @@
skos:definition "Resurs avsedd att uppfattas visuellt och förstås genom användning av språk i skriftlig eller talad form."@sv;
skos:exactMatch rdacontent:1020 ; # "text"
rdfs:subClassOf :Work;
owl:equivalentClass dctype:Text, bf2:Text .
owl:equivalentClass dctype:Text, bf2:Text, iiif_pres3:Text .

# Additional Work/Coordination Types

Expand Down