diff --git a/source/vocab/display.jsonld b/source/vocab/display.jsonld index 25d15feb..4f8bd36f 100644 --- a/source/vocab/display.jsonld +++ b/source/vocab/display.jsonld @@ -854,6 +854,19 @@ "marc:hasCopyAndVersionIdentificationNote" ] }, + "ItemAction": { + "@id": "ItemAction-cards", + "@type": "fresnel:Lens", + "classLensDomain": "ItemAction", + "showProperties": [ + "category", + "appliesTo", + "agent", + "startDate", + "endDate", + "date" + ] + }, "marc:TextualHoldingsBasicBibliographicUnit": { "@id": "marc:TextualHoldingsBasicBibliographicUnit-cards", "@type": "fresnel:Lens", @@ -2559,4 +2572,4 @@ } } } -} \ No newline at end of file +} diff --git a/source/vocab/updateResource.rq b/source/vocab/updateResource.rq index a8fb1cf0..d21c08af 100644 --- a/source/vocab/updateResource.rq +++ b/source/vocab/updateResource.rq @@ -2,22 +2,27 @@ prefix rdfs: prefix owl: prefix : -insert { +insert { #: + # :Resource as baseclass of a term ?term rdfs:subClassOf :Resource -} where { - ?term a owl:Class +} where { #: + # term is a class... + ?term a owl:Class . - # Add Resource where subClassOf is missing (Is this part redundant? Enough with the minus clause?) - optional {?term rdfs:subClassOf ?subClassOf} - filter(!bound(?subClassOf)) + # defined in : (kbv)... + filter strstarts(str(?term), str(:)) - # Don't add subClassOf if term already is :Resource + # unless it *is* that class... filter(?term != :Resource) - # Don't add if ?subClassOf contains refs that starts with - MINUS { - ?term rdfs:subClassOf ?baseClassUri - filter ((?baseClassUri != :) && strstarts(str(?baseClassUri), str(:))) + # and as long as it is *not* the case that: + filter not exists { + # another baseclass is defined... + ?term rdfs:subClassOf ?baseclass . + # which is identified by an IRI... + filter isURI(?baseclass) + # and is defined by : (kbv). + filter strstarts(str(?baseclass), str(:)) } }