-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Exercise shapes constraining Thread-of-Messages items
A follow-on patch will generate Make-managed files. References: #393 Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
- Loading branch information
1 parent
2c7837a
commit eb01aa7
Showing
3 changed files
with
224 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,219 @@ | ||
{ | ||
"@context": { | ||
"co": "http://purl.org/co/", | ||
"kb": "http://example.org/kb/", | ||
"rdfs": "http://www.w3.org/2000/01/rdf-schema#", | ||
"observable": "https://ontology.unifiedcyberontology.org/uco/observable/", | ||
"types": "https://ontology.unifiedcyberontology.org/uco/types/", | ||
"xsd": "http://www.w3.org/2001/XMLSchema#" | ||
}, | ||
"@graph": [ | ||
{ | ||
"@id": "kb:message-1", | ||
"@type": "observable:ObservableObject", | ||
"rdfs:comment": "The non-Message class will trigger errors pertaining to co:element, co:itemContent and types:threadOriginItem." | ||
}, | ||
{ | ||
"@id": "kb:message-2", | ||
"@type": "observable:Message" | ||
}, | ||
{ | ||
"@id": "kb:message-3", | ||
"@type": "observable:Message" | ||
}, | ||
{ | ||
"@id": "kb:message-4", | ||
"@type": "observable:Message" | ||
}, | ||
{ | ||
"@id": "kb:message-5", | ||
"@type": "observable:Message" | ||
}, | ||
{ | ||
"@id": "kb:message-6", | ||
"@type": "observable:ObservableObject", | ||
"rdfs:comment": "The non-Message class will trigger errors pertaining to co:element, co:itemContent and types:threadTerminalItem." | ||
}, | ||
{ | ||
"@id": "kb:message-7", | ||
"@type": "observable:Message" | ||
}, | ||
{ | ||
"@id": "kb:message-thread-2", | ||
"@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" | ||
} | ||
} | ||
}, | ||
{ | ||
"@id": "kb:thread-2", | ||
"@type": "types:Thread", | ||
"co:size": { | ||
"@type": "xsd:nonNegativeInteger", | ||
"@value": "6" | ||
}, | ||
"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:item": [ | ||
|
||
{ | ||
"@id": "kb:message-thread-2-item-1" | ||
}, | ||
{ | ||
"@id": "kb:message-thread-2-item-2" | ||
}, | ||
{ | ||
"@id": "kb:message-thread-2-item-3" | ||
}, | ||
{ | ||
"@id": "kb:message-thread-2-item-4" | ||
}, | ||
{ | ||
"@id": "kb:message-thread-2-item-5" | ||
}, | ||
{ | ||
"@id": "kb:message-thread-2-item-6" | ||
} | ||
|
||
], | ||
"types:threadOriginItem": [ | ||
{ | ||
"@id": "kb:message-thread-2-item-1" | ||
}, | ||
{ | ||
"@id": "kb:message-thread-2-item-5" | ||
} | ||
], | ||
"types:threadTerminalItem": [ | ||
{ | ||
"@id": "kb:message-thread-2-item-3" | ||
}, | ||
{ | ||
"@id": "kb:message-thread-2-item-4" | ||
}, | ||
{ | ||
"@id": "kb:message-thread-2-item-6" | ||
} | ||
] | ||
}, | ||
{ | ||
"@id": "kb:message-thread-2-item-1", | ||
"@type": "types:ThreadItem", | ||
"co:itemContent": { | ||
"@id": "kb:message-1" | ||
}, | ||
"types:threadNextItem": [ | ||
{ | ||
"@id": "kb:message-thread-2-item-2" | ||
}, | ||
{ | ||
"@id": "kb:message-thread-2-item-6" | ||
} | ||
] | ||
}, | ||
{ | ||
"@id": "kb:message-thread-2-item-2", | ||
"@type": "types:ThreadItem", | ||
"co:itemContent": { | ||
"@id": "kb:message-2" | ||
}, | ||
"types:threadNextItem": [ | ||
{ | ||
"@id": "kb:message-thread-2-item-3" | ||
}, | ||
{ | ||
"@id": "kb:message-thread-2-item-4" | ||
} | ||
], | ||
"types:threadPreviousItem": { | ||
"@id": "kb:message-thread-2-item-1" | ||
} | ||
}, | ||
{ | ||
"@id": "kb:message-thread-2-item-3", | ||
"@type": "types:ThreadItem", | ||
"co:itemContent": { | ||
"@id": "kb:message-3" | ||
}, | ||
"types:threadPreviousItem": { | ||
"@id": "kb:message-thread-2-item-2" | ||
} | ||
}, | ||
{ | ||
"@id": "kb:message-thread-2-item-4", | ||
"@type": "types:ThreadItem", | ||
"co:itemContent": { | ||
"@id": "kb:message-4" | ||
}, | ||
"types:threadPreviousItem": { | ||
"@id": "kb:message-thread-2-item-2" | ||
} | ||
}, | ||
{ | ||
"@id": "kb:message-thread-2-item-5", | ||
"@type": "types:ThreadItem", | ||
"co:itemContent": { | ||
"@id": "kb:message-5" | ||
}, | ||
"types:threadNextItem": { | ||
"@id": "kb:message-thread-2-item-6" | ||
} | ||
}, | ||
{ | ||
"@id": "kb:message-thread-2-item-6", | ||
"@type": "types:ThreadItem", | ||
"co:itemContent": { | ||
"@id": "kb:message-6" | ||
}, | ||
"types:threadPreviousItem": [ | ||
{ | ||
"@id": "kb:message-thread-2-item-1" | ||
}, | ||
{ | ||
"@id": "kb:message-thread-2-item-5" | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters