Package org.jrdf.graph

Examples of org.jrdf.graph.TripleImpl


    private Triple[] iteratorAsTriples(ClosableIterator<Long[]> iterator) {
        try {
            List<Triple> triples = new ArrayList<Triple>();
            while (iterator.hasNext()) {
                Long[] longs = iterator.next();
                Triple triple = new TripleImpl((SubjectNode) nodePool.getNodeById(longs[0]),
                    (PredicateNode) nodePool.getNodeById(longs[1]), (ObjectNode) nodePool.getNodeById(longs[2]));
                triples.add(triple);
            }
            Triple[] tripleArray = new Triple[triples.size()];
            return triples.toArray(tripleArray);
View Full Code Here


        return handler.createMolecule(pid, mid);
    }

    public ClosableIterator<Molecule> findMolecules(SubjectNode subject, PredicateNode predicate, ObjectNode object)
        throws GraphException {
        Triple triple = new TripleImpl(subject, predicate, object);
        return findMolecules(triple);
    }
View Full Code Here

    public Triple getTriple() {
        return currentTriple;
    }

    public void handleStatement(SubjectNode subject, PredicateNode predicate, ObjectNode object) {
        currentTriple = new TripleImpl(subject, predicate, object);
    }
View Full Code Here

    public void removeValues(URI predicate) throws GraphException {
        removeValues(valueFactory.createURIReference(predicate));
    }

    public Triple asTriple(PredicateNode predicate, ObjectNode object) throws GraphException {
        return new TripleImpl(this, predicate, object);
    }
View Full Code Here

    public Triple getTriple() {
        return currentTriple;
    }

    public void handleStatement(final SubjectNode subject, final PredicateNode predicate, final ObjectNode object) {
        currentTriple = new TripleImpl(subject, predicate, object);
    }
View Full Code Here

TOP

Related Classes of org.jrdf.graph.TripleImpl

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.