Package org.jrdf.graph

Examples of org.jrdf.graph.SubjectNode


            if (1 < definedAttsCount) {
                sendError("Only one of the attributes rdf:resource or rdf:nodeID can be used here");
            }
        }

        SubjectNode result;

        if (null != resource) {
            result = buildURIFromReference(resource.getValue());
        } else if (null != nodeID) {
            result = createBNode(nodeID.getValue());
View Full Code Here


        if (subject == null) {
            logger.warn("Subject cannot be null");
            return rels;
        }
        SubjectNode s;
        PredicateNode p;
        try {
                s = TripleMaker.createResource(getFedoraResourceURI(subject));
            if (relationship != null) {
                p = TripleMaker.createResource(relationship);
View Full Code Here

        if (logger.isDebugEnabled()){
            logger.debug("Getting attribute " + attribute +" for resource " + resourceID);
        }

        try{
            SubjectNode snode = new SimpleURIReference(new URI(resourceID));
            PredicateNode pnode = new SimpleURIReference(new URI(attribute));
            TripleIterator triples = m_resourceIndex.findTriples(snode, pnode, null, 0);
            results = new HashSet<String>();
            while (triples.hasNext()){
                Triple triple = triples.next();
View Full Code Here

        }

        logger.debug("Getting attribute for resource " + resourceID);

        try{
            SubjectNode snode = new SimpleURIReference(new URI(resourceID));
            PredicateNode pnode = new SimpleURIReference(new URI(attribute));
            DOReader reader = m_doManager.getReader(false, getContext(), pid);
            Set<RelationshipTuple> triples = reader.getRelationships(snode, pnode, null);
            results = new HashSet<String>();
View Full Code Here

TOP

Related Classes of org.jrdf.graph.SubjectNode

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.