public class RELSRelationshipResolver extends RelationshipResolverBase implements RelationshipResolver
Management.getRelationships(org.fcrepo.server.Context, String, String).childRelationships, DEFAULT_RELATIONSHIP, parentRelationships, REPOSITORY| Constructor and Description |
|---|
RELSRelationshipResolver() |
RELSRelationshipResolver(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.
|
getFedoraResourceURIpublic Map<String,Set<String>> getRelationships(String subject, String relationship) throws MelcoeXacmlException
RelationshipResolvergetRelationships in interface RelationshipResolverMelcoeXacmlExceptionpublic 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 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
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")MelcoeXacmlExceptionCopyright © 2013 DuraSpace. All Rights Reserved.