public class RIRelationshipResolver extends RelationshipResolverBase implements RelationshipResolver
| Modifier and Type | Field and Description |
|---|---|
protected List<String> |
tripleLanguages |
protected List<String> |
tupleLanguages |
childRelationships, DEFAULT_RELATIONSHIP, parentRelationships, REPOSITORY| Constructor and Description |
|---|
RIRelationshipResolver(Server server,
Map<String,String> options) |
| Modifier and Type | Method and Description |
|---|---|
String |
buildRESTParentHierarchy(String pid)
Generates a REST based representation of an object and its parents.
|
Set<String> |
getAttributesFromQuery(String query,
String queryLang,
String variable)
Get attributes defined by a query.
|
protected Set<String> |
getParents(String pid) |
Map<String,Set<String>> |
getRelationships(String subject)
Retrieves the relationships for this subject.
|
Map<String,Set<String>> |
getRelationships(String subject,
String relationship)
Retrieves relationships for this subject, relationship and object.
|
protected Map<String,Set<String>> |
getReverseRelationships(String object) |
protected Map<String,Set<String>> |
getReverseRelationships(String object,
String relationship) |
protected String |
getSPARQLQuery(String pidUri) |
protected String |
getTQLQuery(String pidUri) |
getFedoraResourceURIpublic RIRelationshipResolver(Server server, Map<String,String> options) throws MelcoeXacmlException
MelcoeXacmlExceptionpublic Map<String,Set<String>> getRelationships(String subject) throws MelcoeXacmlException
RelationshipResolvergetRelationships in interface RelationshipResolversubject - the subject to return relationships for - either ns:pid,
ns:pid/datastream or the info:fedora/ formsMelcoeXacmlExceptionpublic Map<String,Set<String>> getRelationships(String subject, String relationship) throws MelcoeXacmlException
RelationshipResolvergetRelationships in interface RelationshipResolverMelcoeXacmlExceptionprotected Map<String,Set<String>> getReverseRelationships(String object) throws MelcoeXacmlException
MelcoeXacmlExceptionprotected Map<String,Set<String>> getReverseRelationships(String object, String relationship) throws MelcoeXacmlException
MelcoeXacmlExceptionpublic Set<String> getAttributesFromQuery(String query, String queryLang, String variable) throws MelcoeXacmlException
RelationshipResolvergetAttributesFromQuery in interface RelationshipResolverquery - The query to runqueryLang - Language of the query - itql, sparql, spovariable - - the output variable to return (for spo, specify "s", "p" or "o")MelcoeXacmlExceptionpublic String buildRESTParentHierarchy(String pid) throws MelcoeXacmlException
RelationshipResolverbuildRESTParentHierarchy in interface RelationshipResolverpid - the pid whose parents we need to findMelcoeXacmlExceptionprotected Set<String> getParents(String pid) throws MelcoeXacmlException
MelcoeXacmlExceptionCopyright © 2013 DuraSpace. All Rights Reserved.