ODRL2.0 Simple API
1.0
A simple API to manage simple ODRL2.0 expressions
|
Public Member Functions | |
Action () | |
Action (Action a) | |
Action (String _uri) | |
Public Member Functions inherited from odrlmodel.MetadataObject | |
MetadataObject () | |
MetadataObject (String _uri) | |
MetadataObject (MetadataObject mo) | |
void | setURI (String _uri) |
String | getURI () |
boolean | isAnon () |
String | getComment () |
void | setComment (String _comment) |
String | getSeeAlso () |
String | getTitle () |
void | setTitle (String _title) |
String | getLabel (String lan) |
void | addLabel (String label) |
void | setLabel (String label, String lang) |
void | setLabel (String _label) |
String | toString () |
Additional Inherited Members | |
Public Attributes inherited from odrlmodel.MetadataObject | |
List< String > | labels = new ArrayList() |
String | comment = "" |
String | seeAlso ="" |
String | title ="" |
String | uri = "" |
Static Public Attributes inherited from odrlmodel.MetadataObject | |
static final String | DEFAULT_NAMESPACE = LDRConfig.getNamespace() |
This class represents an ODRL Action.
The Action entity (when related to a Permission entity) indicates the operations (e.g. play, copy, etc.) that the assignee (i.e. the consumer) is permitted to perform on the related Asset linked to by Permission.
When related to a Prohibition, the Action entity indicates the operations that the assignee (again the consumer) is prohibited to perform on the Asset linked to by Prohibition. Analogously, when related to a Duty, it indicates the operation to be performed. Action contains the following attribute: name: indicates the Action entity term (REQUIRED) As its value, the name attribute MAY take one of a set of Action names which are formally defined in profiles.
The ODRL Common Vocabulary defines a standard set of potential terms that MAY be used. For example:
Communities will develop new (or extend existing) profiles to capture additional and refined semantics.
odrlmodel.Action.Action | ( | ) |
Action constructor with a random URI in the default namespace. By default, an action will be like this: http://salonica.dia.fi.upm.es/ldr/action/2e7de960-7001-4c07-bde5-c5ad1f35133d
odrlmodel.Action.Action | ( | Action | a | ) |
Cloner constructor
odrlmodel.Action.Action | ( | String | _uri | ) |
Creates an action identified by the given URI. This Action might be one of those defined by ODRL, in which case label, comment, and seeAlso are loaded from the ODRL ontology
_uri | URI of the action |