Skip to content

Commit

Permalink
Merge pull request #575 from International-Data-Spaces-Association/fe…
Browse files Browse the repository at this point in the history
…ature/log-entry

Add LogEntry + Shape
  • Loading branch information
PHochmann committed Aug 11, 2022
2 parents e35453b + 0d45ddb commit 9be722b
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ artifacts
*.project
references/.DS_Store
.DS_Store
.vscode/
53 changes: 53 additions & 0 deletions taxonomies/Message.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,59 @@ ids:LogMessage a owl:Class;
rdfs:label "Log Message"@en ;
rdfs:comment "Log Message which can be used to transfer logs e.g., to the clearing house."@en.

ids:LogEntry a owl:Class;
rdfs:label "Log Entry"@en ;
rdfs:comment "Contains the metadata of a LogMessage"@en .

ids:transactionID a owl:DatatypeProperty ;
rdfs:domain ids:LogEntry ;
rdfs:range xsd:unsignedInt ;
rdfs:label "Transaction ID"@en ;
rdfs:comment "Links a LogEntry (Metadata) to a transactionID"@en .

ids:processID a owl:DatatypeProperty ;
rdfs:domain ids:LogEntry ;
rdfs:range xsd:string ;
rdfs:label "Process ID"@en ;
rdfs:comment "Links a LogEntry (Metadata) to a processID"@en .

ids:documentID a owl:DatatypeProperty ;
rdfs:domain ids:LogEntry ;
rdfs:range xsd:string ; # UUID?
rdfs:label "Document ID"@en ;
rdfs:comment "Links a LogEntry (Metadata) to a documentID"@en .

# Timestamp given by dct:created

ids:hash a owl:DatatypeProperty ;
rdfs:domain ids:LogEntry ;
rdfs:range xsd:string ;
rdfs:label "Hash"@en ;
rdfs:comment "Links a LogEntry (Metadata) to a hash"@en .

ids:clientID a owl:DatatypeProperty ;
rdfs:domain ids:LogEntry ;
rdfs:range xsd:string ;
rdfs:label "Client ID"@en ;
rdfs:comment "Links a LogEntry (Metadata) to a clientID"@en .

ids:serverID a owl:DatatypeProperty ;
rdfs:domain ids:LogEntry ;
rdfs:range xsd:string ;
rdfs:label "Server ID"@en ;
rdfs:comment "Links a LogEntry (Metadata) to a serverID"@en .

ids:signature a owl:DatatypeProperty ;
rdfs:domain ids:LogEntry ;
rdfs:range xsd:string ;
rdfs:label "Signature"@en ;
rdfs:comment "Links a LogEntry (Metadata) to a signature"@en .

ids:payload a owl:DatatypeProperty ;
rdfs:domain ids:LogEntry ;
rdfs:range xsd:string ;
rdfs:label "Payload"@en ;
rdfs:comment "Links a LogEntry (Metadata) to a payload"@en .

# App-related Messages
# ---------------------
Expand Down
16 changes: 16 additions & 0 deletions testing/taxonomies/MessageShape.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -415,3 +415,19 @@ shapes:AppUploadMessageShape
sh:severity sh:Violation ;
sh:message "<https://raw.githubusercontent.com/International-Data-Spaces-Association/InformationModel/master/testing/taxonomies/MessageShape.ttl> (AppUploadMessageShape): An ids:AppUploadMessage must have exactly one IRI reference to an ids:Artifact linked through the ids:appArtifactResource property"@en ;
] .

# Log messaging
# -------------

shapes:LogEntryShape
a sh:NodeShape ;
sh:targetClass ids:LogEntry ;

sh:property [
a sh:PropertyShape ;
sh:path dct:created ;
sh:datatype xsd:dateTimeStamp ;
sh:severity sh:Violation ;
sh:maxCount 1 ;
sh:message "<https://raw.githubusercontent.com/International-Data-Spaces-Association/InformationModel/master/testing/taxonomies/MessageShape.ttl> (LogEntryShape): An ids:LogEntry must not point to more than one resource of datatype xsd:dateTimeStamp though the dct:created property"@en ;
] .

0 comments on commit 9be722b

Please sign in to comment.