Skip to content

Commit

Permalink
Remove unordered observable:message property
Browse files Browse the repository at this point in the history
Users interested in representing a message occurring in a thread,
without knowing the order of that message, should use the `co:element`
property as demonstrated in the updated example
`message_thread_PASS.json`.

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

References:
#393

Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
  • Loading branch information
ajnelson-nist committed Jul 21, 2022
1 parent ec00a43 commit dcb12d5
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 54 deletions.
12 changes: 0 additions & 12 deletions ontology/uco/observable/observable.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -3908,12 +3908,6 @@ observable:MessageThreadFacet
co:element
) ;
] ,
[
sh:class observable:ObservableObject ;
sh:minCount "1"^^xsd:integer ;
sh:nodeKind sh:BlankNodeOrIRI ;
sh:path observable:message ;
] ,
[
sh:class observable:ObservableObject ;
sh:nodeKind sh:BlankNodeOrIRI ;
Expand Down Expand Up @@ -10660,12 +10654,6 @@ observable:maxRunTime
rdfs:range xsd:integer ;
.

observable:message
a owl:ObjectProperty ;
rdfs:label "message"@en ;
rdfs:range observable:ObservableObject ;
.

observable:messageID
a owl:DatatypeProperty ;
rdfs:label "messageID"@en ;
Expand Down
40 changes: 20 additions & 20 deletions tests/examples/message_thread_PASS.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,26 +41,6 @@
"@type": "observable:MessageThread",
"core:hasFacet": {
"@type": "observable:MessageThreadFacet",
"observable:message": [
{
"@id": "kb:message-1"
},
{
"@id": "kb:message-2"
},
{
"@id": "kb:message-3"
},
{
"@id": "kb:message-4"
},
{
"@id": "kb:message-5"
},
{
"@id": "kb:message-6"
}
],
"observable:messageThread": {
"@id": "kb:thread-1"
}
Expand All @@ -69,6 +49,26 @@
{
"@id": "kb:thread-1",
"@type": "types:Thread",
"co:element": [
{
"@id": "kb:message-1"
},
{
"@id": "kb:message-2"
},
{
"@id": "kb:message-3"
},
{
"@id": "kb:message-4"
},
{
"@id": "kb:message-5"
},
{
"@id": "kb:message-6"
}
],
"co:size": {
"@type": "xsd:nonNegativeInteger",
"@value": "6"
Expand Down
22 changes: 0 additions & 22 deletions tests/examples/message_thread_XFAIL.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,26 +43,6 @@
"@type": "observable:MessageThread",
"core:hasFacet": {
"@type": "observable:MessageThreadFacet",
"observable:message": [
{
"@id": "kb:message-1"
},
{
"@id": "kb:message-2"
},
{
"@id": "kb:message-3"
},
{
"@id": "kb:message-4"
},
{
"@id": "kb:message-5"
},
{
"@id": "kb:message-6"
}
],
"observable:messageThread": {
"@id": "kb:thread-2"
}
Expand Down Expand Up @@ -96,7 +76,6 @@
}
],
"co:item": [

{
"@id": "kb:message-thread-2-item-1"
},
Expand All @@ -115,7 +94,6 @@
{
"@id": "kb:message-thread-2-item-6"
}

],
"types:threadOriginItem": [
{
Expand Down

0 comments on commit dcb12d5

Please sign in to comment.