-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #131 from casework/uco-issue-541
Add Event example
- Loading branch information
Showing
9 changed files
with
289 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,14 @@ | ||
#!/usr/bin/make -f | ||
|
||
# This software was developed at the National Institute of Standards | ||
# and Technology by employees of the Federal Government in the course | ||
# of their official duties. Pursuant to title 17 Section 105 of the | ||
# United States Code this software is not subject to copyright | ||
# protection and is in the public domain. NIST assumes no | ||
# responsibility whatsoever for its use by other parties, and makes | ||
# no guarantees, expressed or implied, about its quality, | ||
# reliability, or any other characteristic. | ||
# | ||
# We would appreciate acknowledgement if the software is used. | ||
|
||
include ../src/illustration-nosrc.mk |
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,72 @@ | ||
@prefix drafting: <http://example.org/ontology/drafting/> . | ||
@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
@prefix sh: <http://www.w3.org/ns/shacl#> . | ||
@prefix uco-core: <https://ontology.unifiedcyberontology.org/uco/core/> . | ||
@prefix uco-types: <https://ontology.unifiedcyberontology.org/uco/types/> . | ||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
|
||
drafting:Event | ||
a | ||
owl:Class , | ||
sh:NodeShape | ||
; | ||
rdfs:subClassOf uco-core:UcoObject ; | ||
rdfs:label "Event"@en ; | ||
rdfs:comment "An Event is a noteworthy occurrence (something that happens or might happen)."@en ; | ||
rdfs:seeAlso <https://github.com/ucoProject/UCO/issues/541> ; | ||
sh:property | ||
[ | ||
sh:class uco-core:UcoObject ; | ||
sh:nodeKind sh:IRI ; | ||
sh:path drafting:eventContext ; | ||
] , | ||
[ | ||
sh:class uco-types:Dictionary ; | ||
sh:nodeKind sh:IRI ; | ||
sh:path drafting:eventAttribute ; | ||
] , | ||
[ | ||
sh:datatype xsd:dateTime ; | ||
sh:nodeKind sh:Literal ; | ||
sh:path uco-core:endTime ; | ||
] , | ||
[ | ||
sh:datatype xsd:string ; | ||
sh:nodeKind sh:Literal ; | ||
sh:path drafting:eventType ; | ||
] , | ||
[ | ||
sh:datatype xsd:dateTime ; | ||
sh:nodeKind sh:Literal ; | ||
sh:path uco-core:startTime ; | ||
] | ||
; | ||
sh:targetClass drafting:Event ; | ||
. | ||
|
||
drafting:eventAttribute | ||
a owl:ObjectProperty ; | ||
rdfs:label "Event Attribute"@en ; | ||
rdfs:comment "An event attribute specifies an ad-hoc attribute/value for an event."@en ; | ||
rdfs:seeAlso <https://github.com/ucoProject/UCO/issues/541> ; | ||
rdfs:range uco-types:Dictionary ; | ||
. | ||
|
||
drafting:eventContext | ||
a owl:ObjectProperty ; | ||
rdfs:label "Event Context"@en ; | ||
rdfs:comment "An event context describes the association of actions and objects relating to an event."@en ; | ||
rdfs:seeAlso <https://github.com/ucoProject/UCO/issues/541> ; | ||
rdfs:range uco-core:UcoObject ; | ||
. | ||
|
||
drafting:eventType | ||
a owl:DatatypeProperty ; | ||
rdfs:label "Event Type"@en ; | ||
rdfs:comment "An event type specifies a classification type for the event."@en ; | ||
rdfs:seeAlso <https://github.com/ucoProject/UCO/issues/541> ; | ||
rdfs:range xsd:string ; | ||
. | ||
|
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,147 @@ | ||
{ | ||
"@context": { | ||
"drafting": "http://example.org/ontology/drafting/", | ||
"kb": "http://example.org/kb/", | ||
"action": "https://ontology.unifiedcyberontology.org/uco/action/", | ||
"core": "https://ontology.unifiedcyberontology.org/uco/core/", | ||
"identity": "https://ontology.unifiedcyberontology.org/uco/identity/", | ||
"location": "https://ontology.unifiedcyberontology.org/uco/location/", | ||
"observable": "https://ontology.unifiedcyberontology.org/uco/observable/", | ||
"types": "https://ontology.unifiedcyberontology.org/uco/types/", | ||
"xsd": "http://www.w3.org/2001/XMLSchema#" | ||
}, | ||
"@graph": [ | ||
{ | ||
"@id": "kb:event-d4a5a009-7b4d-445d-8d06-9dc85f263b3e", | ||
"@type": "drafting:Event", | ||
"core:name": "user logged in", | ||
"drafting:eventType": "Authentication", | ||
"core:startTime": { | ||
"@type": "xsd:dateTime", | ||
"@value": "2023-07-15T17:59:43.25Z" | ||
}, | ||
"core:endTime": { | ||
"@type": "xsd:dateTime", | ||
"@value": "2023-07-15T17:59:45.33Z" | ||
}, | ||
"drafting:eventContext": [ | ||
{ | ||
"@id": "kb:action-7377c5e6-6b28-4bc7-ad21-6763c070bfcc" | ||
}, | ||
{ | ||
"@id": "kb:action-a86738e7-c890-4615-b3ab-deaccd3bafbb" | ||
} | ||
], | ||
"drafting:eventAttribute": { | ||
"@id": "kb:dictionary-b222a5f4-e7eb-442a-8aab-c22c89734b9e" | ||
} | ||
}, | ||
{ | ||
"@id": "kb:dictionary-b222a5f4-e7eb-442a-8aab-c22c89734b9e", | ||
"@type": "types:Dictionary", | ||
"types:entry": [ | ||
{ | ||
"@id": "kb:dictionary-entry-7b56fc43-beb8-4331-9af2-e6e16e4fb90c" | ||
}, | ||
{ | ||
"@id": "kb:dictionary-entry-3facf519-da01-4ee7-81a1-ab2f954b6c8e" | ||
} | ||
] | ||
}, | ||
{ | ||
"@id": "kb:dictionary-entry-7b56fc43-beb8-4331-9af2-e6e16e4fb90c", | ||
"@type": "types:DictionaryEntry", | ||
"types:key": "mfa-enabled", | ||
"types:value": "false" | ||
}, | ||
{ | ||
"@id": "kb:dictionary-entry-3facf519-da01-4ee7-81a1-ab2f954b6c8e", | ||
"@type": "types:DictionaryEntry", | ||
"types:key": "credential-entry-mode", | ||
"types:value": "manual" | ||
}, | ||
{ | ||
"@id": "kb:action-7377c5e6-6b28-4bc7-ad21-6763c070bfcc", | ||
"@type": "action:Action", | ||
"core:name": "submit-login-request", | ||
"action:performer": { | ||
"@id": "kb:person-e3b1df7c-bb3b-49fe-bc1d-0203c9dff86a" | ||
}, | ||
"action:instrument": { | ||
"@id": "kb:application-account-e7f100bb-6367-4363-9416-b7ae73af2be9" | ||
}, | ||
"action:object": { | ||
"@id": "kb:online-service-a3cfc0e0-26a7-4b6a-8be8-aaa65db3dedb" | ||
}, | ||
"action:location": { | ||
"@id": "kb:location-ebafeec7-de26-4107-b2c0-bde4c248dcce" | ||
}, | ||
"action:startTime": { | ||
"@type": "xsd:dateTime", | ||
"@value": "2023-07-15T17:59:43.25Z" | ||
} | ||
}, | ||
{ | ||
"@id": "kb:action-a86738e7-c890-4615-b3ab-deaccd3bafbb", | ||
"@type": "action:Action", | ||
"core:name": "authenticate-credentials", | ||
"action:performer": { | ||
"@id": "kb:online-service-a3cfc0e0-26a7-4b6a-8be8-aaa65db3dedb" | ||
}, | ||
"action:instrument": { | ||
"@id": "kb:application-account-e7f100bb-6367-4363-9416-b7ae73af2be9" | ||
}, | ||
"action:result": { | ||
"@id": "kb:event-d4a5a009-7b4d-445d-8d06-9dc85f263b3e" | ||
}, | ||
"action:endTime": { | ||
"@type": "xsd:dateTime", | ||
"@value": "2023-07-15T17:59:45.33Z" | ||
} | ||
}, | ||
{ | ||
"@id": "kb:online-service-a3cfc0e0-26a7-4b6a-8be8-aaa65db3dedb", | ||
"@type": "observable:OnlineService", | ||
"name": "Facebook" | ||
}, | ||
{ | ||
"@id": "kb:application-account-e7f100bb-6367-4363-9416-b7ae73af2be9", | ||
"@type": "observable:ApplicationAccount", | ||
"hasFacet": [ | ||
{ | ||
"@id": "kb:account-facet-57a3351a-5043-4d57-8fdf-ebe0deac708a", | ||
"@type": "observable:AccountFacet", | ||
"observable:accountType": "online-service", | ||
"observable:owner": { | ||
"@id": "kb:person-e3b1df7c-bb3b-49fe-bc1d-0203c9dff86a" | ||
} | ||
}, | ||
{ | ||
"@id": "kb:application-account-facet-f9d6b37f-0c24-4450-a08e-78f77b60ef16", | ||
"@type": "observable:ApplicationAccountFacet", | ||
"observable:application": { | ||
"@id": "kb:online-service-a3cfc0e0-26a7-4b6a-8be8-aaa65db3dedb" | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"@id": "kb:person-e3b1df7c-bb3b-49fe-bc1d-0203c9dff86a", | ||
"@type": "identity:Person", | ||
"core:name": "John Smith" | ||
}, | ||
{ | ||
"@id": "kb:location-ebafeec7-de26-4107-b2c0-bde4c248dcce", | ||
"@type": "location:Location", | ||
"hasFacet": [ | ||
{ | ||
"@id": "kb:simple-address-facet-3ab0674c-9bbc-40a9-9050-8b9b94b6bf29", | ||
"@type": "location:SimpleAddressFacet", | ||
"location:locality": "Detroit", | ||
"location:region": "Michigan", | ||
"location:country": "USA" | ||
} | ||
] | ||
} | ||
] | ||
} |
11 changes: 11 additions & 0 deletions
11
examples/illustrations/event/event_validation-develop-2.0.0.ttl
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,11 @@ | ||
@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
@prefix sh: <http://www.w3.org/ns/shacl#> . | ||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
|
||
[] | ||
a sh:ValidationReport ; | ||
sh:conforms "true"^^xsd:boolean ; | ||
. | ||
|
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,11 @@ | ||
@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
@prefix sh: <http://www.w3.org/ns/shacl#> . | ||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
|
||
[] | ||
a sh:ValidationReport ; | ||
sh:conforms "true"^^xsd:boolean ; | ||
. | ||
|
11 changes: 11 additions & 0 deletions
11
examples/illustrations/event/event_validation-unstable-2.0.0.ttl
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,11 @@ | ||
@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
@prefix sh: <http://www.w3.org/ns/shacl#> . | ||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
|
||
[] | ||
a sh:ValidationReport ; | ||
sh:conforms "true"^^xsd:boolean ; | ||
. | ||
|
11 changes: 11 additions & 0 deletions
11
examples/illustrations/event/event_validation-unstable.ttl
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,11 @@ | ||
@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
@prefix sh: <http://www.w3.org/ns/shacl#> . | ||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
|
||
[] | ||
a sh:ValidationReport ; | ||
sh:conforms "true"^^xsd:boolean ; | ||
. | ||
|
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,11 @@ | ||
@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
@prefix sh: <http://www.w3.org/ns/shacl#> . | ||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
|
||
[] | ||
a sh:ValidationReport ; | ||
sh:conforms "true"^^xsd:boolean ; | ||
. | ||
|