public class RelationshipChecker extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String |
NS_CORE |
protected static String |
NS_OBO |
protected static String |
URI_INHERES_IN |
protected static String |
URI_REALIZES |
protected static String |
URI_RELATED_BY |
protected static String |
URI_RELATES |
| Constructor and Description |
|---|
RelationshipChecker(org.apache.jena.ontology.OntModel ontModel) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
anyUrisInCommon(List<String> list1,
List<String> list2)
Are there any URIs that appear in both of these lists?
|
protected PolicyDecision |
authorizedDecision(String message)
An AUTHORIZED decision with a message like "PolicyClass: message".
|
org.apache.jena.rdf.model.Selector |
createSelector(org.apache.jena.rdf.model.Resource subject,
String predicateUri,
String objectUri) |
org.apache.jena.rdf.model.Selector |
createSelector(String subjectUri,
String predicateUri,
String objectUri) |
List<String> |
getObjectsOfLinkedProperty(String resourceUri,
String linkUri,
String propertyUri)
Get a list of the object URIs that satisfy these statements:
<resourceUri> <linkUri> <contextNodeUri>
<contextNodeUri> <propertyUri> <objectUri>
May return an empty list, but never returns null. |
List<String> |
getObjectsOfProperty(String resourceUri,
String propertyUri)
Get a list of the object URIs that satisfy this statement:
<resourceUri> <propertyUri> <objectUri>
May return an empty list, but never returns null. |
List<String> |
getObjectsThroughLinkingNode(String resourceUri,
String property1Uri,
String linkNodeTypeUri,
String property2Uri)
Get a list of URIs for object that link to the specified resource, by
means of the specified properties, through a linking node of the
specified type.
|
boolean |
isResourceOfType(String resourceUri,
String typeUri)
Is this resource a member of this type? That is, is there an statement of
the form:
<resourceUri> rdfs:type <typeUri> |
protected static final String NS_CORE
protected static final String NS_OBO
protected static final String URI_RELATES
protected static final String URI_RELATED_BY
protected static final String URI_INHERES_IN
protected static final String URI_REALIZES
public RelationshipChecker(org.apache.jena.ontology.OntModel ontModel)
public boolean anyUrisInCommon(List<String> list1, List<String> list2)
public boolean isResourceOfType(String resourceUri, String typeUri)
<resourceUri> rdfs:type <typeUri> public List<String> getObjectsOfProperty(String resourceUri, String propertyUri)
<resourceUri> <propertyUri> <objectUri>
May return an empty list, but never returns null.public List<String> getObjectsOfLinkedProperty(String resourceUri, String linkUri, String propertyUri)
<resourceUri> <linkUri> <contextNodeUri>
<contextNodeUri> <propertyUri> <objectUri>
May return an empty list, but never returns null.public List<String> getObjectsThroughLinkingNode(String resourceUri, String property1Uri, String linkNodeTypeUri, String property2Uri)
<resourceUri> <property1Uri> <linkNodeUri>
<linkNodeUri> rdfs:type <linkNodeTypeUri>
<linkNodeUri> <property2Uri> <objectUri> public org.apache.jena.rdf.model.Selector createSelector(String subjectUri, String predicateUri, String objectUri)
public org.apache.jena.rdf.model.Selector createSelector(org.apache.jena.rdf.model.Resource subject,
String predicateUri,
String objectUri)
protected PolicyDecision authorizedDecision(String message)
Copyright © 2022. All rights reserved.