From 3b6a9652ee6ab1d2de0f7531911c15dfe609a93e Mon Sep 17 00:00:00 2001 From: kwahlin Date: Thu, 14 Mar 2024 13:01:47 +0100 Subject: [PATCH 1/3] Add logical operators --- source/vocab/platform.ttl | 60 +++++++++++++++++++++++++++++++++++++++ sys/context/kbv.jsonld | 2 ++ 2 files changed, 62 insertions(+) diff --git a/source/vocab/platform.ttl b/source/vocab/platform.ttl index 3fa2325a..30e88a74 100644 --- a/source/vocab/platform.ttl +++ b/source/vocab/platform.ttl @@ -602,6 +602,66 @@ rdfs:range :PartialCollectionView; owl:inverseOf :items . +:and a owl:ObjectProperty ; + :category :platform, :pending ; + rdfs:label "and"@en, "och"@sv ; + skos:altLabel "&&" ; + rdfs:domain :SearchMapping ; + rdfs:range rdf:List . + +:or a owl:ObjectProperty ; + :category :platform, :pending ; + rdfs:label "or"@en, "eller"@sv ; + skos:altLabel "||" ; + rdfs:domain :SearchMapping ; + rdfs:range rdf:List . + +:not a owl:ObjectProperty ; + :category :platform, :pending ; + rdfs:label "not"@en, "ej"@sv ; + skos:altLabel "!" ; + rdfs:domain :SearchMapping ; + rdfs:range :SearchMapping . + +:equals a rdf:Property ; + :category :platform, :pending ; + rdfs:label "equals"@en, "likamed"@sv ; + skos:altLabel "=" ; + rdfs:domain :SearchMapping . + +:notEquals a rdf:Property ; + :category :platform, :pending ; + rdfs:label "not equals"@en, "ej likamed"@sv ; + skos:altLabel "!=" ; + rdfs:domain :SearchMapping . + +:greaterThan a rdf:Property ; + :category :platform, :pending ; + rdfs:label "greater than"@en, "större än"@sv ; + skos:altLabel ">" ; + rdfs:domain :SearchMapping + rdfs:range rdf:Literal . + +:greaterThanOrEquals a rdf:Property ; + :category :platform, :pending ; + rdfs:label "greater than or equals"@en, "större än eller likamed"@sv ; + skos:altLabel ">=" ; + rdfs:domain :SearchMapping + rdfs:range rdf:Literal . + +:lessThan a rdf:Property ; + :category :platform, :pending ; + rdfs:label "less than"@en, "mindre än"@sv ; + skos:altLabel "<" ; + rdfs:domain :SearchMapping + rdfs:range rdf:Literal . + +:lessThanOrEquals a rdf:Property ; + :category :platform, :pending ; + rdfs:label "less than or equals"@en, "mindre än eller likamed"@sv ; + skos:altLabel "<=" ; + rdfs:domain :SearchMapping + rdfs:range rdf:Literal . ## # Containers (mainly used here for controlled URI:s) diff --git a/sys/context/kbv.jsonld b/sys/context/kbv.jsonld index faa15188..b2ee004f 100644 --- a/sys/context/kbv.jsonld +++ b/sys/context/kbv.jsonld @@ -19,6 +19,8 @@ "birthYear": {"@id": "birthDate", "@type": "Year"}, "deathYear": {"@id": "deathDate", "@type": "Year"}, + "and": {"@container": "@list" }, + "or": {"@container": "@list" }, "termComponentList": {"@container": "@list"}, "sliceByDimension": {"@id": "slice", "@container": "@index"}, "sliceList": {"@id": "slice", "@container": "@list"}, From 48d886b7b3fc1b97355682c06605c3a3f4bd3810 Mon Sep 17 00:00:00 2001 From: kwahlin Date: Fri, 15 Mar 2024 10:17:55 +0100 Subject: [PATCH 2/3] Change range for and/or --- source/vocab/platform.ttl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/vocab/platform.ttl b/source/vocab/platform.ttl index 30e88a74..78c3f6bd 100644 --- a/source/vocab/platform.ttl +++ b/source/vocab/platform.ttl @@ -607,14 +607,14 @@ rdfs:label "and"@en, "och"@sv ; skos:altLabel "&&" ; rdfs:domain :SearchMapping ; - rdfs:range rdf:List . + rdfs:range :SearchMapping . :or a owl:ObjectProperty ; :category :platform, :pending ; rdfs:label "or"@en, "eller"@sv ; skos:altLabel "||" ; rdfs:domain :SearchMapping ; - rdfs:range rdf:List . + rdfs:range :SearchMapping . :not a owl:ObjectProperty ; :category :platform, :pending ; From 15f7bc55883ac3ef78e7b3b1ed71afcb52a73e4f Mon Sep 17 00:00:00 2001 From: kwahlin Date: Fri, 15 Mar 2024 13:44:03 +0100 Subject: [PATCH 3/3] Add missing semi colons --- source/vocab/platform.ttl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/vocab/platform.ttl b/source/vocab/platform.ttl index 78c3f6bd..1006c3de 100644 --- a/source/vocab/platform.ttl +++ b/source/vocab/platform.ttl @@ -639,28 +639,28 @@ :category :platform, :pending ; rdfs:label "greater than"@en, "större än"@sv ; skos:altLabel ">" ; - rdfs:domain :SearchMapping + rdfs:domain :SearchMapping ; rdfs:range rdf:Literal . :greaterThanOrEquals a rdf:Property ; :category :platform, :pending ; rdfs:label "greater than or equals"@en, "större än eller likamed"@sv ; skos:altLabel ">=" ; - rdfs:domain :SearchMapping + rdfs:domain :SearchMapping ; rdfs:range rdf:Literal . :lessThan a rdf:Property ; :category :platform, :pending ; rdfs:label "less than"@en, "mindre än"@sv ; skos:altLabel "<" ; - rdfs:domain :SearchMapping + rdfs:domain :SearchMapping ; rdfs:range rdf:Literal . :lessThanOrEquals a rdf:Property ; :category :platform, :pending ; rdfs:label "less than or equals"@en, "mindre än eller likamed"@sv ; skos:altLabel "<=" ; - rdfs:domain :SearchMapping + rdfs:domain :SearchMapping ; rdfs:range rdf:Literal . ##