Skip to content

Commit

Permalink
Update implementation with NeverInformationResource and market-analys…
Browse files Browse the repository at this point in the history
…ts example

A follow-on patch will regenerate Make-managed files.

References:
* #606

Signed-off-by: Alex Nelson <[email protected]>
  • Loading branch information
ajnelson-nist committed Jun 24, 2024
1 parent da6c944 commit 91a686a
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 13 deletions.
17 changes: 13 additions & 4 deletions ontology/uco/core/core.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -290,16 +290,16 @@ core:InformationResource
sh:NodeShape
;
rdfs:subClassOf core:UcoThing ;
owl:disjointWith core:NonInformationResource ;
owl:disjointWith core:NeverInformationResource ;
sh:targetClass core:InformationResource ;
.

core:InformationResource-disjointWith-NonInformationResource-shape
core:InformationResource-disjointWith-NeverInformationResource-shape
a sh:NodeShape ;
sh:message "core:InformationResource and core:NonInformationResource are disjoint classes. Assigning both types to a single node will be an error as of UCO 2.0.0."@en ;
sh:message "core:InformationResource and core:NeverInformationResource are disjoint classes. Assigning both types to a single node will be an error as of UCO 2.0.0."@en ;
sh:not [
a sh:NodeShape ;
sh:class core:NonInformationResource ;
sh:class core:NeverInformationResource ;
] ;
sh:severity sh:Warning ;
sh:targetClass core:InformationResource ;
Expand Down Expand Up @@ -338,6 +338,15 @@ core:ModusOperandi
sh:targetClass core:ModusOperandi ;
.

core:NeverInformationResource
a
owl:Class ,
sh:NodeShape
;
rdfs:subClassOf core:NonInformationResource ;
sh:targetClass core:NeverInformationResource ;
.

core:NonInformationResource
a
owl:Class ,
Expand Down
15 changes: 9 additions & 6 deletions ontology/uco/identity/identity.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,7 @@ identity:Identity
owl:Class ,
sh:NodeShape
;
rdfs:subClassOf
core:IdentityAbstraction ,
core:NonInformationResource
;
rdfs:subClassOf core:IdentityAbstraction ;
rdfs:label "Identity"@en ;
rdfs:comment "An identity is a grouping of identifying characteristics unique to an individual or organization."@en ;
sh:targetClass identity:Identity ;
Expand Down Expand Up @@ -163,7 +160,10 @@ identity:Organization
owl:Class ,
sh:NodeShape
;
rdfs:subClassOf identity:Identity ;
rdfs:subClassOf
core:NeverInformationResource ,
identity:Identity
;
rdfs:label "Organization"@en ;
rdfs:comment "An organization is a grouping of identifying characteristics unique to a group of people who work together in an organized way for a shared purpose. [based on https://dictionary.cambridge.org/us/dictionary/english/organization]"@en ;
sh:targetClass identity:Organization ;
Expand All @@ -185,7 +185,10 @@ identity:Person
owl:Class ,
sh:NodeShape
;
rdfs:subClassOf identity:Identity ;
rdfs:subClassOf
core:NeverInformationResource ,
identity:Identity
;
rdfs:label "Person"@en ;
rdfs:comment "A person is a grouping of identifying characteristics unique to a human being regarded as an individual. [based on https://www.lexico.com/en/definition/person]"@en ;
sh:targetClass identity:Person ;
Expand Down
2 changes: 1 addition & 1 deletion ontology/uco/observable/observable.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -2222,7 +2222,7 @@ observable:Device
sh:NodeShape
;
rdfs:subClassOf
core:NonInformationResource ,
core:NeverInformationResource ,
observable:ObservableObject
;
rdfs:label "Device"@en ;
Expand Down
11 changes: 9 additions & 2 deletions ontology/uco/types/types.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ types:Dictionary
owl:Class ,
sh:NodeShape
;
rdfs:subClassOf core:UcoInherentCharacterizationThing ;
rdfs:subClassOf
core:NeverInformationResource ,
core:UcoInherentCharacterizationThing
;
rdfs:label "Dictionary"@en ;
rdfs:comment "A dictionary is list of (term/key, value) pairs with each term/key existing no more than once."@en ;
sh:property [
Expand Down Expand Up @@ -101,7 +104,10 @@ types:Hash
owl:Class ,
sh:NodeShape
;
rdfs:subClassOf core:UcoInherentCharacterizationThing ;
rdfs:subClassOf
core:NeverInformationResource ,
core:UcoInherentCharacterizationThing
;
rdfs:label "Hash"@en ;
rdfs:comment "A hash is a grouping of characteristics unique to the result of applying a mathematical algorithm that maps data of arbitrary size to a bit string (the 'hash') and is a one-way function, that is, a function which is practically infeasible to invert. This is commonly used for integrity checking of data. [based on https://en.wikipedia.org/wiki/Cryptographic_hash_function]"@en ;
sh:property
Expand Down Expand Up @@ -184,6 +190,7 @@ types:Thread
;
rdfs:subClassOf
co:Bag ,
core:NeverInformationResource ,
core:UcoThing
;
rdfs:label "Thread"@en ;
Expand Down
24 changes: 24 additions & 0 deletions tests/examples/information_resource_PASS.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,30 @@
"@id": "http://example.org/~chris",
"@type": "observable:WebResource",
"rdfs:comment": "This node will trigger an info-level result from not designating itself a InformationResource, and not ending with a UUID."
},
{
"@id": "https://mc.example.co.jp/",
"@type": "observable:WebPage",
"rdfs:comment": [
"This node should trigger no errors, even when incorporating the annotations on the same identifier from another JSON dict.",
"This JSON dict was provided by a market analyst in Japan."
]
},
{
"@id": "https://mc.example.co.jp/",
"@type": ["core:NonInformationResource", "observable:WebResource"],
"rdfs:comment": [
"This node should trigger no errors, even when incorporating the annotations on the same identifier from another JSON dict.",
"This JSON dict was provided by a market analyst in France."
]
},
{
"@id": "https://mc.example.co.jp/lang-fr/",
"@type": "observable:WebPage",
"rdfs:comment": [
"This node should trigger no errors.",
"This JSON dict was provided by a market analyst in France."
]
}
]
}

0 comments on commit 91a686a

Please sign in to comment.