Class LDPathWrapper


  • public class LDPathWrapper
    extends Object
    A convenience factory for creating an LDPath object with an LDCacheBackend.
    Since:
    Aug 5, 2016
    Author:
    acoburn
    • 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 backend
        functions - 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 query
        program - the LDPath program
        Returns:
        a result object wrapped in a List
        Throws:
        org.apache.marmotta.ldpath.exception.LDPathParseException - if the LDPath program was malformed