Package org.fcrepo.camel.ldpath
Class LDPathWrapper
- java.lang.Object
-
- org.fcrepo.camel.ldpath.LDPathWrapper
-
public class LDPathWrapper extends Object
A convenience factory for creating an LDPath object with an LDCacheBackend.- Since:
- Aug 5, 2016
- Author:
- acoburn
-
-
Constructor Summary
Constructors Constructor Description LDPathWrapper(org.apache.marmotta.ldpath.backend.linkeddata.LDCacheBackend backend)Create an LDPathWrapper ObjectLDPathWrapper(org.apache.marmotta.ldpath.backend.linkeddata.LDCacheBackend backend, Set<org.apache.marmotta.ldpath.api.functions.SelectorFunction> functions)Create an LDPathWrapper and register a set of selector functions.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Map<String,Collection<?>>>programQuery(String uri, InputStream program)Execute an LDPath query
-
-
-
Constructor Detail
-
LDPathWrapper
public LDPathWrapper(org.apache.marmotta.ldpath.backend.linkeddata.LDCacheBackend backend, Set<org.apache.marmotta.ldpath.api.functions.SelectorFunction> functions)
Create an LDPathWrapper and register a set of selector functions.- Parameters:
backend- the linkeddata backendfunctions- selector functions
-
LDPathWrapper
public LDPathWrapper(org.apache.marmotta.ldpath.backend.linkeddata.LDCacheBackend backend)
Create an LDPathWrapper Object- Parameters:
backend- the linkeddata backend
-
-
Method Detail
-
programQuery
public List<Map<String,Collection<?>>> programQuery(String uri, InputStream program) throws org.apache.marmotta.ldpath.exception.LDPathParseException
Execute an LDPath query- Parameters:
uri- the URI to queryprogram- the LDPath program- Returns:
- a result object wrapped in a List
- Throws:
org.apache.marmotta.ldpath.exception.LDPathParseException- if the LDPath program was malformed
-
-