Skip to content

Examples of formal semantics #135

@vroddon

Description

@vroddon

With Nicoletta's help, I have just updated one of the examples for state of the art (state C12). Example and link follows. Observations:

  • It is now valid RDF. We should check the syntax of all the files...
  • We represented currentTime directly with a literal. Beatriz was proposing an intermediate resource. Was there any particular reason?
  • We are unsure about using odrl:payAmount, odrl:payee, and odrl:compensate. By using odrl:payAmount and odrl:payee as properties and odrl:compensate as owl:Class we are extending the official semantics (not illegal, but not a very nice practice). By declaring new elements we are overload the user (not a very nice practice). I would like to discuss which is your best approach.
  • Actions may not be instant. I suggest using prov-o for not instantaneous actions (e.g. watch a movie between 10:00 and 12:00). By using prov-o we are also supporting actions that result in the creation of other assets.
@prefix odrl: <http://www.w3.org/ns/odrl/2/> .
@prefix party: <https://ex.org/party#> .
@prefix ex:   <https://ex.org/> .
@prefix sotw: <https://ex.org/sotw#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix xsd:     <http://www.w3.org/2001/XMLSchema#> .

  ex:sotw a sotw:SotW;                                   #ex:sotw is a particular state of the world
    sotw:id <http://example.com/policy/state/C12>;
    sotw:currentTime "2025-07-27T00:00:00Z"^^xsd:dateTime; #TO BE DISCUSSED: Beatriz was proposing using an intermediate URI. Why?
    sotw:action [                                       #sotw:action is an action that actually took place (what the evaluator knows)
      a ex:Compensate;                                  #Observation: we may use odrl:compensate if also declared to be an owl:Class.
      ex:payAmount "5.00"^^xsd:decimal;                 #We avoid using odrl:payAmount, for it is not meant to be used as a property.
      odrl:payee party:sony;
      dcterms:issued "2025-07-23T00:00:00Z"^^xsd:dateTime  #Idea: if the action is a prov:Activity, then we can have start and end time for the action.  
    ] .

Is this version ok for you?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions