Package net.fortytwo.ripple.util

Examples of net.fortytwo.ripple.util.ModelConnectionHelper


    public TurtleView(final RipplePrintStream printStream,
                      final ModelConnection modelConnection)
            throws RippleException {
        this.printStream = printStream;
        this.modelConnection = modelConnection;
        this.helper = new ModelConnectionHelper(modelConnection);

        RippleProperties props = Ripple.getConfiguration();
        this.printEntireStack = props.getBoolean(
                Ripple.RESULT_VIEW_PRINT_ENTIRE_STACK);
        this.showEdges = props.getBoolean(
View Full Code Here


        RippleList stack = arg;

        // Note: stack may be null (and this should not be a problem).
        RippleList result = stack.push(
                new ModelConnectionHelper(mc).createRandomURI());
//System.out.println( "Creating a new node" );

        solutions.put(result);
    }
View Full Code Here

    public StackMappingWrapper(final StackMapping wrapped, final ModelConnection mc) throws RippleException {
        this.innerMapping = wrapped;

        // Uses a random identifier... not for actual use
        rdfValue = new ModelConnectionHelper(mc).createRandomURI().toRDF(mc);
//System.out.println("created a StackMappingWrapper: " + this + " for mapping " + innerMapping);
    }
View Full Code Here

    }

    public RDFValue toRDF(final ModelConnection mc)
            throws RippleException {
        if (null == rdfEquivalent) {
            rdfEquivalent = new ModelConnectionHelper(mc).createRandomURI();
        }

        return rdfEquivalent;
    }
View Full Code Here

        // TODO: this is a bit of a hack
        if (v.sesameValue() instanceof Literal) {
            return false;
        }

        ModelConnectionHelper h = new ModelConnectionHelper(mc);
        return (v.sesameValue().equals(RDF.NIL)
                || null != h.findSingleObject(v, RDF_FIRST));
    }
View Full Code Here

                scheme,
                user;

        public UriTestCase(final RippleValue r, final ModelConnection mc)
                throws Exception {
            ModelConnectionHelper h = new ModelConnectionHelper(mc);

            base = strVal(r, BASE, h, mc);
            comment = strVal(r, COMMENT, h, mc);
            frag = strVal(r, FRAG, h, mc);
            label = strVal(r, LABEL, h, mc);
            path = strVal(r, PATH, h, mc);
            port = strVal(r, PORT, h, mc);
            query = strVal(r, QUERY, h, mc);
            reg = strVal(r, REG, h, mc);
            scheme = strVal(r, SCHEME, h, mc);
            user = strVal(r, USER, h, mc);

            System.out.println("r = " + r);
            type = TestType.find(
                    ((URI) h.findSingleObject(r, TEST).toRDF(mc).sesameValue()).getLocalName());
            System.out.println("    type = " + type);
        }
View Full Code Here

TOP

Related Classes of net.fortytwo.ripple.util.ModelConnectionHelper

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.