ODRL2.0 Simple API
1.0
A simple API to manage simple ODRL2.0 expressions
|
Static Public Member Functions | |
static String | getRDF (Policy policy, org.apache.jena.riot.Lang lang) |
static List< Policy > | load (String path) |
Static Protected Member Functions | |
static List< Resource > | findPolicies (Model model) |
static Policy | getPolicyFromResource (Resource rpolicy) |
static MetadataObject | getResourceMetadata (MetadataObject me, Resource resource) |
Interface to serialize ODRL2.0 Expressions from / to RDF.
|
staticprotected |
Finds the policies in the model. It determines URIs with a type of a known policy term. Policies are accepted to be odrl:policy, cc:License or dc:LicenseDocument
model | Model |
|
staticprotected |
Gets a ODRL2.0 policy object from a RDF resource
an | RDF Resource |
|
static |
Serializes the policy into a RDF string
policy | A given policy |
|
staticprotected |
Returns a MetadataObject from a Jena resource
me | MetadataObject to be enriched |
resource | Resource with the data |
|
static |
Loads the ODRL2.0 policies found in a file.
path | File location |