Examples of sesameValue()


Examples of net.fortytwo.ripple.model.RDFValue.sesameValue()

            throws RippleException {
        RDFValue uri = mc.valueOf(java.net.URI.create(qe.getLexicon().getDefaultNamespace() + term));
//System.out.println("uri = " + uri);
        mc.remove(uri, null, null);
        mc.commit();
        mc.getModel().getSpecialValues().remove(uri.sesameValue());
    }

    public String getName() {
        return "unlist";
    }
View Full Code Here

Examples of net.fortytwo.ripple.model.RDFValue.sesameValue()

            RDFValue id = mc.valueOf(java.net.URI.create(qe.getLexicon().getDefaultNamespace() + name));
            expr.setRDF(id);
            mc.internalize(expr);
            mc.commit();

            qe.getLexicon().addURI((URI) id.sesameValue());
            mc.getModel().getSpecialValues().put(id.sesameValue(), expr);
        }
    }

    public String getName() {
View Full Code Here

Examples of net.fortytwo.ripple.model.RDFValue.sesameValue()

            expr.setRDF(id);
            mc.internalize(expr);
            mc.commit();

            qe.getLexicon().addURI((URI) id.sesameValue());
            mc.getModel().getSpecialValues().put(id.sesameValue(), expr);
        }
    }

    public String getName() {
        return "list";
View Full Code Here

Examples of net.fortytwo.ripple.model.RDFValue.sesameValue()

                            o = new RippleBNode();
                            //continue;
                            o.setStack(stack);
                        } else {
                            obj = r.sesameValue();
                            o = (RippleSesameValue) valueFactory.nativize(obj);
                            o.setStack(stack);
                        }

                        nextStatement = valueFactory.createStatement(subject, predicate, (Value) o);
View Full Code Here

Examples of net.fortytwo.ripple.model.RDFValue.sesameValue()

            buffer.put(
                    valueFactory.createStatement((Resource) id.sesameValue(), RDF.TYPE, RDF.LIST));
            buffer.put(
                    valueFactory.createStatement((Resource) id.sesameValue(), RDF.FIRST, firstRdf.sesameValue()));
            buffer.put(
                    valueFactory.createStatement((Resource) id.sesameValue(), RDF.REST, restRdf.sesameValue()));

            cur = rest;
            id = restRdf;
        }
View Full Code Here

Examples of net.fortytwo.ripple.model.RDFValue.sesameValue()

    public void testValueOf() throws Exception {
        String s = "http://example.org/foo";
        java.net.URI u = java.net.URI.create(s);
        RDFValue v = modelConnection.valueOf(u);
        assertEquals(s, v.sesameValue().stringValue());
    }

    public void testGrahamKlyneCases() throws Exception {
        ModelConnection mc = getTestModel().createConnection();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.