public class JenaUtil extends Object
JenaUtil class.
| Constructor and Description |
|---|
JenaUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
deepRemoveProperties(com.hp.hpl.jena.rdf.model.Resource resource)
deepRemoveProperties.
|
static void |
deepRemoveProperty(com.hp.hpl.jena.rdf.model.Statement property)
Removes the statement passed as argument as well as any property of the
object recurisively.
|
static com.hp.hpl.jena.rdf.model.Model |
getExpandedResource(com.hp.hpl.jena.rdf.model.Resource resource,
int expansion)
getExpandedResource.
|
static com.hp.hpl.jena.rdf.model.Model |
getExpandedResource(com.hp.hpl.jena.rdf.model.Resource resource,
int expansion,
boolean stopAtResWithName)
getExpandedResource.
|
static com.hp.hpl.jena.rdf.model.Model |
getExpandedResource(com.hp.hpl.jena.rdf.model.Resource resource,
int expansion,
boolean stopAtResWithName,
Set validProperties)
getExpandedResource.
|
static com.hp.hpl.jena.rdf.model.Resource[] |
getRoots(com.hp.hpl.jena.rdf.model.Model model)
getRoots.
|
static void |
removeSomeDuplicateAnonymous(com.hp.hpl.jena.rdf.model.Model model)
This method removes duplicate anonymous resources that are - not the
object of a statement - have no anonymous resource as the object of a
statement
A more generic variant woul be something like "Model
getMinimalIsomorphicModel(model)"
|
static com.hp.hpl.jena.rdf.model.Model |
renameNamedResources(com.hp.hpl.jena.rdf.model.Model model,
ResourceRenamer renamer)
renameNamedResources.
|
static void |
replace(com.hp.hpl.jena.rdf.model.Model model,
com.hp.hpl.jena.rdf.model.Resource source,
com.hp.hpl.jena.rdf.model.Resource target)
replaces any ocuurent of source in the model with target, this also means
that target get all the attributes of source.
|
public static void removeSomeDuplicateAnonymous(com.hp.hpl.jena.rdf.model.Model model)
model - a Model object.public static void deepRemoveProperties(com.hp.hpl.jena.rdf.model.Resource resource)
deepRemoveProperties.
resource - a Resource object.public static void deepRemoveProperty(com.hp.hpl.jena.rdf.model.Statement property)
property - a Statement object.public static com.hp.hpl.jena.rdf.model.Model renameNamedResources(com.hp.hpl.jena.rdf.model.Model model,
ResourceRenamer renamer)
renameNamedResources.
model - a Model object.renamer - a ResourceRenamer object.Model object.public static void replace(com.hp.hpl.jena.rdf.model.Model model,
com.hp.hpl.jena.rdf.model.Resource source,
com.hp.hpl.jena.rdf.model.Resource target)
throws com.hp.hpl.jena.shared.JenaException
model - a Model object.source - a Resource object.target - a Resource object.com.hp.hpl.jena.shared.JenaException - if any.public static com.hp.hpl.jena.rdf.model.Model getExpandedResource(com.hp.hpl.jena.rdf.model.Resource resource,
int expansion)
getExpandedResource.
resource - a Resource object.expansion - a int.Model object.public static com.hp.hpl.jena.rdf.model.Model getExpandedResource(com.hp.hpl.jena.rdf.model.Resource resource,
int expansion,
boolean stopAtResWithName)
getExpandedResource.
resource - a Resource object.expansion - a int.stopAtResWithName - a boolean.public static com.hp.hpl.jena.rdf.model.Model getExpandedResource(com.hp.hpl.jena.rdf.model.Resource resource,
int expansion,
boolean stopAtResWithName,
Set validProperties)
getExpandedResource.
resource - a Resource object.validProperties - null means that properties of any type are allowedexpansion - a int.stopAtResWithName - a boolean.Model object.public static com.hp.hpl.jena.rdf.model.Resource[] getRoots(com.hp.hpl.jena.rdf.model.Model model)
throws com.hp.hpl.jena.shared.JenaException
getRoots.
model - a Model object.Resource objects.com.hp.hpl.jena.shared.JenaException - if any.Copyright © 2017. All rights reserved.