ODRL2.0 Simple API
1.0
A simple API to manage simple ODRL2.0 expressions
|
Public Member Functions | |
String | toString () |
Static Public Member Functions | |
static List< String > | getCoreODRLActions () |
static String | getIndividualLabel (String uri) |
static String | getIndividualComment (String uri) |
static Action | enrichAction (Action action1) |
static Constraint | enrichConstraint (Constraint coriginal) |
static List< Action > | getBasicActions () |
static List< Action > | getBasicDuties () |
static List< Constraint > | getBasicConstraints () |
static void | print (Model modelo) |
static boolean | save (Model modelo, String filename) |
static boolean | save (String modelo, String filename) |
static Rule | findCreativeCommons (Resource rpolicy) |
static List< Resource > | getOntResourcesOfType (Model model, Resource resource) |
static List< Resource > | getResourcesOfType (Model model, Resource resource) |
static List< String > | getObjectsOfType (Model model, Resource resource) |
static List< String > | getObjectsOfType (Model model, String uri) |
static String | getFirstPropertyValue (Resource resource, Property property) |
static List< String > | getAllPropertyStrings (Resource resource, Property property) |
static List< Resource > | getAllPropertyResources (Resource resource, Property property) |
Helper class with some useful methods to manipulate RDF Not to be used by external users
Creates an action with the metadata properties defined in the core model
|
static |
Creates a constraints with the metadata properties defined in the core model
|
static |
Returns a CreativeCommons rule from a Resource
rpolicy | A Jena resource with a CreativeCommons resource |
|
static |
Gets all the values of the given property. It assumes that all the values are strings.
resource | |
property |
|
static |
Retrieves a reduced set of actions for demonstration purposes
|
static |
Retrieves a reduced set of constraints for demonstration purposes
|
static |
Retrieves a reduced set of actions for demonstration purposes
|
static |
Gets the ODRL core actions
|
static |
Gets the first value of a property
|
static |
Get
|
static |
Gets a list of resources of the given type
model | Jena model |
resource | Given resource |
|
static |
Obtiene todos los recursos que son de un tipo dado