Package org.corrib.s3b.mbb.beans.rdf

Examples of org.corrib.s3b.mbb.beans.rdf.BNode


    if (resource instanceof org.openrdf.model.URI) {
      org.openrdf.model.URI uri = (org.openrdf.model.URI)resource;
      return new URI(uri.getURI());
    } else if (resource instanceof org.openrdf.model.BNode) {
      org.openrdf.model.BNode bNode = (org.openrdf.model.BNode)resource;
      return new BNode(bNode.getID());
    } else {
      return null;
    }
  }
View Full Code Here


  protected static org.openrdf.model.Resource getResource(Resource resource) {
    if (resource instanceof URI) {
      URI uri = (URI)resource;
      return new URIImpl(uri.getURI());
    } else if (resource instanceof BNode) {
      BNode bNode = (BNode)resource;
      return new BNodeImpl(bNode.getID());
    } else {
      return null;
    }
  }
View Full Code Here

TOP

Related Classes of org.corrib.s3b.mbb.beans.rdf.BNode

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.