Package org.apache.marmotta.ldpath.backend.sesame

Examples of org.apache.marmotta.ldpath.backend.sesame.SesameConnectionBackend


        } else {
            try {
                RepositoryConnection conn = sesameService.getConnection();
                try {
                    conn.begin();
                    SesameConnectionBackend backend = SesameConnectionBackend.withConnection(conn);
                    config.addFunction(Constants.NS_LMF_FUNCS + function.getPathExpression(backend), function);
                } finally {
                    conn.commit();
                    conn.close();
                }
View Full Code Here


    public Collection<Value> pathQuery(Value context, String path, Map<String, String> namespaces) throws LDPathParseException {
        try {
            RepositoryConnection conn = sesameService.getConnection();
            try {
                conn.begin();
                SesameConnectionBackend backend = SesameConnectionBackend.withConnection(conn);
                LDPath<Value> ldpath = new LDPath<Value>(backend, config);

                return ldpath.pathQuery(context, path, namespaces);
            } finally {
                conn.commit();
View Full Code Here

    public Map<String, Collection<?>> programQuery(Value context, String program) throws LDPathParseException {
        try {
            RepositoryConnection conn = sesameService.getConnection();
            try {
                conn.begin();
                SesameConnectionBackend backend = SesameConnectionBackend.withConnection(conn);
                LDPath<Value> ldpath = new LDPath<Value>(backend, config);

                return ldpath.programQuery(context, new StringReader(program));
            } finally {
                conn.commit();
View Full Code Here

TOP

Related Classes of org.apache.marmotta.ldpath.backend.sesame.SesameConnectionBackend

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.