|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.topbraid.core.model.Statements
public class Statements
A utility class for common operations concering Statements.
| Constructor Summary | |
|---|---|
Statements()
|
|
| Method Summary | |
|---|---|
static void |
addObjectStatements(java.util.Set<com.hp.hpl.jena.rdf.model.Resource> reachedResources,
com.hp.hpl.jena.rdf.model.Resource subject,
com.hp.hpl.jena.rdf.model.Model model,
java.util.Set<com.hp.hpl.jena.rdf.model.Statement> statements)
Collects all Statements by a transitive traversal of the anonymous objects of statements with the resource as subject. |
static void |
addStatements(java.util.Collection results,
com.hp.hpl.jena.rdf.model.Model model,
com.hp.hpl.jena.rdf.model.Resource subject,
com.hp.hpl.jena.rdf.model.Property predicate)
|
static void |
delete(java.util.Iterator it)
|
static void |
delete(com.hp.hpl.jena.rdf.model.Statement statement)
Deletes a Statement from an OntModel. |
static void |
deleteWithDependingObjects(com.hp.hpl.jena.rdf.model.Statement statement)
Deletes a Statement and all depending objects (such as anonymous superclasses). |
static void |
deleteWithDependingObjects(com.hp.hpl.jena.rdf.model.StmtIterator it)
|
static java.util.Set<com.hp.hpl.jena.rdf.model.Resource> |
getDependingResources(java.util.Iterator resources)
|
static java.util.Set<com.hp.hpl.jena.rdf.model.Resource> |
getDependingResources(com.hp.hpl.jena.rdf.model.Resource resource)
|
static java.util.Set |
getDependingStatements(java.util.Iterator resources)
Gets all Statements that need to be deleted if a given set of resources is deleted. |
static java.util.Set |
getDependingStatements(java.util.Iterator resources,
boolean includeObjectRefs)
|
static java.util.Set |
getDependingStatements(com.hp.hpl.jena.rdf.model.Resource resource)
|
static java.util.Set<com.hp.hpl.jena.rdf.model.Statement> |
getObjectStatements(com.hp.hpl.jena.rdf.model.Resource subject)
Gets all statements that have a given subject, including all its depending statements in case they are about bnodes. |
static com.hp.hpl.jena.graph.Graph |
getSourceGraph(com.hp.hpl.jena.rdf.model.Statement statement)
|
static java.util.List<com.hp.hpl.jena.rdf.model.Statement> |
getStatements(com.hp.hpl.jena.rdf.model.Resource subject,
com.hp.hpl.jena.rdf.model.Property predicate)
Gets an ordered list of Statements containing the properties of a given resource/predicate combination. |
static boolean |
isDeletable(com.hp.hpl.jena.rdf.model.Statement statement)
Checks if a Statement can be deleted. |
static boolean |
isDeletable(com.hp.hpl.jena.rdf.model.StmtIterator it)
|
static boolean |
isInferred(com.hp.hpl.jena.rdf.model.Statement statement)
Checks if a Statement is inferred, i.e. |
static boolean |
isNotFromBaseModel(com.hp.hpl.jena.rdf.model.Statement statement)
Checks if a Statement is imported. |
static boolean |
isSystem(com.hp.hpl.jena.rdf.model.Statement statement)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Statements()
| Method Detail |
|---|
public static void addObjectStatements(java.util.Set<com.hp.hpl.jena.rdf.model.Resource> reachedResources,
com.hp.hpl.jena.rdf.model.Resource subject,
com.hp.hpl.jena.rdf.model.Model model,
java.util.Set<com.hp.hpl.jena.rdf.model.Statement> statements)
reachedResources - subject - the subject to begin traversal atmodel - the model to querystatements - the Set where the resulting Statements will be added to
public static void addStatements(java.util.Collection results,
com.hp.hpl.jena.rdf.model.Model model,
com.hp.hpl.jena.rdf.model.Resource subject,
com.hp.hpl.jena.rdf.model.Property predicate)
public static void delete(java.util.Iterator it)
public static void delete(com.hp.hpl.jena.rdf.model.Statement statement)
statement - the Statement to deletepublic static void deleteWithDependingObjects(com.hp.hpl.jena.rdf.model.Statement statement)
statement - the Statement to deletepublic static void deleteWithDependingObjects(com.hp.hpl.jena.rdf.model.StmtIterator it)
public static java.util.Set<com.hp.hpl.jena.rdf.model.Resource> getDependingResources(java.util.Iterator resources)
public static java.util.Set<com.hp.hpl.jena.rdf.model.Resource> getDependingResources(com.hp.hpl.jena.rdf.model.Resource resource)
public static java.util.Set getDependingStatements(com.hp.hpl.jena.rdf.model.Resource resource)
public static java.util.Set getDependingStatements(java.util.Iterator resources)
node -
public static java.util.Set getDependingStatements(java.util.Iterator resources,
boolean includeObjectRefs)
public static com.hp.hpl.jena.graph.Graph getSourceGraph(com.hp.hpl.jena.rdf.model.Statement statement)
public static java.util.Set<com.hp.hpl.jena.rdf.model.Statement> getObjectStatements(com.hp.hpl.jena.rdf.model.Resource subject)
subject - the subject to get the object statements of
public static java.util.List<com.hp.hpl.jena.rdf.model.Statement> getStatements(com.hp.hpl.jena.rdf.model.Resource subject,
com.hp.hpl.jena.rdf.model.Property predicate)
subject - the subjectpredicate - the predicate
public static boolean isDeletable(com.hp.hpl.jena.rdf.model.StmtIterator it)
public static boolean isDeletable(com.hp.hpl.jena.rdf.model.Statement statement)
statement - the Statement to check
public static boolean isNotFromBaseModel(com.hp.hpl.jena.rdf.model.Statement statement)
statement - the Statement to check
public static boolean isInferred(com.hp.hpl.jena.rdf.model.Statement statement)
statement - the Statement to check
public static boolean isSystem(com.hp.hpl.jena.rdf.model.Statement statement)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||