ODRL2.0 Simple API  1.0
A simple API to manage simple ODRL2.0 expressions
 All Classes Functions Variables Pages
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
odrlmodel.RDFUtils Class Reference

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< ActiongetBasicActions ()
 
static List< ActiongetBasicDuties ()
 
static List< ConstraintgetBasicConstraints ()
 
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)
 

Static Public Attributes

static Property TITLE = ModelFactory.createDefaultModel().createProperty("http://purl.org/dc/terms/title")
 
static Property COMMENT = ModelFactory.createDefaultModel().createProperty("http://www.w3.org/2000/01/rdf-schema#comment")
 
static Property RIGHTS = ModelFactory.createDefaultModel().createProperty("http://purl.org/dc/terms/rights")
 
static Property RLICENSE = ModelFactory.createDefaultModel().createProperty("http://purl.org/dc/terms/license")
 
static Property LABEL = ModelFactory.createDefaultModel().createProperty("http://www.w3.org/2000/01/rdf-schema#label")
 
static Property SEEALSO = ModelFactory.createDefaultModel().createProperty("http://www.w3.org/2000/01/rdf-schema#seeAlso")
 
static Resource RDATASET = ModelFactory.createDefaultModel().createResource("http://www.w3.org/ns/dcat#Dataset")
 
static Resource RLINKSET = ModelFactory.createDefaultModel().createResource("http://rdfs.org/ns/void#Linkset")
 
static OntModel coreModel
 

Detailed Description

Helper class with some useful methods to manipulate RDF Not to be used by external users

Author
Victor Rodriguez Doncel at OEG-UPM 2014

Member Function Documentation

static Action odrlmodel.RDFUtils.enrichAction ( Action  action1)
static

Creates an action with the metadata properties defined in the core model

static Constraint odrlmodel.RDFUtils.enrichConstraint ( Constraint  coriginal)
static

Creates a constraints with the metadata properties defined in the core model

static Rule odrlmodel.RDFUtils.findCreativeCommons ( Resource  rpolicy)
static

Returns a CreativeCommons rule from a Resource

Parameters
rpolicyA Jena resource with a CreativeCommons resource
Returns
an ODRL Rule compatible
static List<String> odrlmodel.RDFUtils.getAllPropertyStrings ( Resource  resource,
Property  property 
)
static

Gets all the values of the given property. It assumes that all the values are strings.

Parameters
resource
property
static List<Action> odrlmodel.RDFUtils.getBasicActions ( )
static

Retrieves a reduced set of actions for demonstration purposes

static List<Constraint> odrlmodel.RDFUtils.getBasicConstraints ( )
static

Retrieves a reduced set of constraints for demonstration purposes

static List<Action> odrlmodel.RDFUtils.getBasicDuties ( )
static

Retrieves a reduced set of actions for demonstration purposes

static List<String> odrlmodel.RDFUtils.getCoreODRLActions ( )
static

Gets the ODRL core actions

static String odrlmodel.RDFUtils.getFirstPropertyValue ( Resource  resource,
Property  property 
)
static

Gets the first value of a property

static List<String> odrlmodel.RDFUtils.getObjectsOfType ( Model  model,
Resource  resource 
)
static

Get

static List<Resource> odrlmodel.RDFUtils.getOntResourcesOfType ( Model  model,
Resource  resource 
)
static

Gets a list of resources of the given type

Parameters
modelJena model
resourceGiven resource
Returns
List of resources
static List<Resource> odrlmodel.RDFUtils.getResourcesOfType ( Model  model,
Resource  resource 
)
static

Obtiene todos los recursos que son de un tipo dado


The documentation for this class was generated from the following file: