Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add LogEntry + Shape #575

Merged
merged 8 commits into from
Aug 11, 2022
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/
50 changes: 50 additions & 0 deletions taxonomies/Message.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -380,11 +380,61 @@ ids:requestedParticipant rdf:type owl:ObjectProperty ;
# Log messaging
# -------------

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

ids:LogMessage a owl:Class;
rdfs:subClassOf ids:NotificationMessage ;
rdfs:label "Log Message"@en ;
rdfs:comment "Log Message which can be used to transfer logs e.g., to the clearing house."@en.

ids:payload a owl:DatatypeProperty ;
PHochmann marked this conversation as resolved.
Show resolved Hide resolved
rdfs:domain ids:LogEntry ;
rdfs:range ids:LogMessage ;
rdfs:comment "Links a LogEntry (Metadata) to a LogMessage (payload)"@en .

ids:transactionID a owl:DatatypeProperty ;
rdfs:domain ids:LogEntry ;
rdfs:range xsd:unsignedInt ;
rdfs:comment "Links a LogEntry (Metadata) to a transactionID"@en .
PHochmann marked this conversation as resolved.
Show resolved Hide resolved

ids:processID a owl:DatatypeProperty ;
rdfs:domain ids:LogEntry ;
rdfs:range xsd:string ;
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:comment "Links a LogEntry (Metadata) to a documentID"@en .

# Timestamp given by dct:created

ids:hasHash a owl:DatatypeProperty ;
PHochmann marked this conversation as resolved.
Show resolved Hide resolved
rdfs:domain ids:LogEntry ;
rdfs:range xsd:string ;
rdfs:comment "Links a LogEntry (Metadata) to a hash"@en .

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

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

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

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

# App-related Messages
# ---------------------
Expand Down
25 changes: 25 additions & 0 deletions testing/taxonomies/MessageShape.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -415,3 +415,28 @@ 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 ids:logMessage ;
PHochmann marked this conversation as resolved.
Show resolved Hide resolved
sh:class ids:LogMessage ;
sh:minCount 1 ;
sh:severity sh:Violation ;
sh:message "<https://raw.githubusercontent.com/International-Data-Spaces-Association/InformationModel/master/testing/taxonomies/MessageShape.ttl> (LogEntryShape): An ids:LogEntry must not point to less than one ids:LogMessage though its ids:logMessage property"@en ;
] ;

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 ;
] .