-
Notifications
You must be signed in to change notification settings - Fork 10
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
Need for the machine-readable specification of the input-output of all the examples #89
Comments
@besteves4 do you voluntueer to create a file in the repo https://w3c.github.io/odrl/formal-semantics/odrlfs.ttl with the new vocabulary needed? |
On the subject of inputs, we should also specify what is the expected name for the endpoint (e.g. some authZen examples have implemented "is") I have 3 different API:
with a JSON object as part of the BODY: {
"subject": {
"id": "an_uuid"
},
"resource": {
"id": "another_uuid"
},
"action": {
"name": "read"
},
"context": {
"did": "id" // expects the decentralised ID that references the world
}
}
{
"subject": {
"id": "an_uuid"
// can have more attributes, but not useful in ODRL 2.2
},
"resource": {
"id": "another_uuid"
// can have more attributes, but not useful in ODRL 2.2
},
"action": {
"name": "read",
},
"context": {
"comment": "The request could also set all the variables",
"variable_uuid1": { "some_purpose" }, // "purpose"
"variable_uuid2": { [ "ENG", "SPA", "ITA"] } , // "language"
"variable_uuid3": { // "spatial" example 1
"@context": {
"geo": "http://www.opengis.net/ont/geosparql#",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"dct": "http://purl.org/dc/terms/",
"ex": "http://example.org/"
},
"@id": "ex:VaticanCity",
"@type": "geo:Feature",
"rdfs:label": "Vatican City",
"dct:description": "The Vatican City is an independent city-state enclaved within Rome, Italy.",
"geo:hasGeometry": // as a polygon
{
"@id": "ex:VaticanGeometry",
"@type": "geo:Polygon",
"geo:asWKT": "POLYGON((12.4516 41.9029, 12.4571 41.9029, 12.4571 41.9075, 12.4516 41.9075, 12.4516 41.9029))",
"rdfs:label": "Boundary of Vatican City"
},
"variable_uuid4": { // "spatial" example 2
"@context": {
"geo": "http://www.opengis.net/ont/geosparql#",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"dct": "http://purl.org/dc/terms/",
"ex": "http://example.org/"
},
"@id": "ex:Monaco",
"@type": "geo:Feature",
"rdfs:label": "Monaco",
"dct:description": "Monaco is a sovereign city-state located on the French Riviera in Western Europe.",
"geo:hasGeometry": // as a point
{
"@id": "ex:MonacoCenter",
"@type": "geo:Point",
"geo:asWKT": "POINT(7.4246 43.7384)",
"rdfs:label": "Geometric center of Monaco"
}
}
}
} Notes:
|
Ramblings for future discussion when using agents on behalf of the named subject: "subject": {
"id": "some_delegate_uuid"
"delegate": "true|false",
"function": "assignee"
} Note: For security, we wouldn't expect the delegate to know the UUID of "who they are replacing", and we still need to check the policy (no time saved by having that extra information). The The evaluation engine can check all the functions and find if there is a relationship (pseudocode):
∼ : There's no agreed symbol for "is related to", so this is the closest I could find. |
As a result of the meeting in Madrid (see the agenda) on Dec. 19th, 2024, it was agreed on the need to specify a common data model for the input data and the output data of the ODRL Evaluator.
Changes derived to this agreement include providing links to the RDF or JSON examples.
The text was updated successfully, but these errors were encountered: