Package com.hp.hpl.jena.rdf.model

Examples of com.hp.hpl.jena.rdf.model.NodeIterator.toList()


    } else {
      //If we didnt find the sourceName in the model, maybe it is a different source with the
      //same schema.
      //Maybe we need to substitute the sourceName in the model with this one
      NodeIterator sourceObjectIter = model.listObjectsOfProperty(sourceNameProp);
      List<RDFNode> sourceObjects = sourceObjectIter.toList();
     
      if(sourceObjects.size() > 1) {
        throw new KarmaException("More than one resource exists with source name: " + id.getName());
      } else if(sourceObjects.size() == 1) {
        RDFNode prevSourceObject = sourceObjects.get(0);
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.