Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Commit 9be722b

Browse files
authored
Merge pull request #575 from International-Data-Spaces-Association/feature/log-entry
Add LogEntry + Shape
2 parents e35453b + 0d45ddb commit 9be722b

File tree

3 files changed

+70
-0
lines changed

3 files changed

+70
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ artifacts
1111
*.project
1212
references/.DS_Store
1313
.DS_Store
14+
.vscode/

taxonomies/Message.ttl

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,59 @@ ids:LogMessage a owl:Class;
385385
rdfs:label "Log Message"@en ;
386386
rdfs:comment "Log Message which can be used to transfer logs e.g., to the clearing house."@en.
387387

388+
ids:LogEntry a owl:Class;
389+
rdfs:label "Log Entry"@en ;
390+
rdfs:comment "Contains the metadata of a LogMessage"@en .
391+
392+
ids:transactionID a owl:DatatypeProperty ;
393+
rdfs:domain ids:LogEntry ;
394+
rdfs:range xsd:unsignedInt ;
395+
rdfs:label "Transaction ID"@en ;
396+
rdfs:comment "Links a LogEntry (Metadata) to a transactionID"@en .
397+
398+
ids:processID a owl:DatatypeProperty ;
399+
rdfs:domain ids:LogEntry ;
400+
rdfs:range xsd:string ;
401+
rdfs:label "Process ID"@en ;
402+
rdfs:comment "Links a LogEntry (Metadata) to a processID"@en .
403+
404+
ids:documentID a owl:DatatypeProperty ;
405+
rdfs:domain ids:LogEntry ;
406+
rdfs:range xsd:string ; # UUID?
407+
rdfs:label "Document ID"@en ;
408+
rdfs:comment "Links a LogEntry (Metadata) to a documentID"@en .
409+
410+
# Timestamp given by dct:created
411+
412+
ids:hash a owl:DatatypeProperty ;
413+
rdfs:domain ids:LogEntry ;
414+
rdfs:range xsd:string ;
415+
rdfs:label "Hash"@en ;
416+
rdfs:comment "Links a LogEntry (Metadata) to a hash"@en .
417+
418+
ids:clientID a owl:DatatypeProperty ;
419+
rdfs:domain ids:LogEntry ;
420+
rdfs:range xsd:string ;
421+
rdfs:label "Client ID"@en ;
422+
rdfs:comment "Links a LogEntry (Metadata) to a clientID"@en .
423+
424+
ids:serverID a owl:DatatypeProperty ;
425+
rdfs:domain ids:LogEntry ;
426+
rdfs:range xsd:string ;
427+
rdfs:label "Server ID"@en ;
428+
rdfs:comment "Links a LogEntry (Metadata) to a serverID"@en .
429+
430+
ids:signature a owl:DatatypeProperty ;
431+
rdfs:domain ids:LogEntry ;
432+
rdfs:range xsd:string ;
433+
rdfs:label "Signature"@en ;
434+
rdfs:comment "Links a LogEntry (Metadata) to a signature"@en .
435+
436+
ids:payload a owl:DatatypeProperty ;
437+
rdfs:domain ids:LogEntry ;
438+
rdfs:range xsd:string ;
439+
rdfs:label "Payload"@en ;
440+
rdfs:comment "Links a LogEntry (Metadata) to a payload"@en .
388441

389442
# App-related Messages
390443
# ---------------------

testing/taxonomies/MessageShape.ttl

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,3 +415,19 @@ shapes:AppUploadMessageShape
415415
sh:severity sh:Violation ;
416416
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 ;
417417
] .
418+
419+
# Log messaging
420+
# -------------
421+
422+
shapes:LogEntryShape
423+
a sh:NodeShape ;
424+
sh:targetClass ids:LogEntry ;
425+
426+
sh:property [
427+
a sh:PropertyShape ;
428+
sh:path dct:created ;
429+
sh:datatype xsd:dateTimeStamp ;
430+
sh:severity sh:Violation ;
431+
sh:maxCount 1 ;
432+
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 ;
433+
] .

0 commit comments

Comments
 (0)