Examples of listStatements()


Examples of com.hp.hpl.jena.rdf.model.Model.listStatements()

            System.out.println("The database contains resources of type metric:");
            while (iters.hasNext()) {
                Resource resource = iters.nextResource();
                System.out.println("  " + resource.getLocalName());
                /* identifier */
                StmtIterator stmtI1 = model.listStatements(resource, identifier, (RDFNode)null);
        while(stmtI1.hasNext()) {
            Statement statement = stmtI1.nextStatement();
            if(statement.getObject().isLiteral()) {
              System.out.println("    identifier:"+statement.getObject());             
            } else if(statement.getObject().isResource()) {
View Full Code Here

Examples of com.hp.hpl.jena.rdf.model.Model.listStatements()

            } else {
              System.out.println("    identifier no literal no resource");
            }
          }
        /* hasDimension */
        stmtI1 = model.listStatements(resource, hasDimension, (RDFNode)null);
        while(stmtI1.hasNext()) {
            Statement statement = stmtI1.nextStatement();
            if(statement.getObject().isLiteral()) {
              System.out.println("    hasDimension impossible:"+statement.getObject());             
            } else if(statement.getObject().isResource()) {
View Full Code Here

Examples of com.hp.hpl.jena.rdf.model.Model.listStatements()

            if(statement.getObject().isLiteral()) {
              System.out.println("    hasDimension impossible:"+statement.getObject());             
            } else if(statement.getObject().isResource()) {
              System.out.println("    hasDimension resource:"+statement.getObject());
              Resource dimResource = statement.getObject().asResource();                 
              StmtIterator stmtI2 = model.listStatements(dimResource,
                   (Property)null, (RDFNode)null);
               while(stmtI2.hasNext()) {
                Statement statement2 = stmtI2.nextStatement();
                System.out.println("      "+statement2.getPredicate().getLocalName()
                    +" "+statement2.getObject());
View Full Code Here

Examples of com.hp.hpl.jena.rdf.model.Model.listStatements()

            } else {
              System.out.println("    hasDimension no literal no resource");
            }
          }
        /* hasScale */
        stmtI1 = model.listStatements(resource, hasScale, (RDFNode)null);
        while(stmtI1.hasNext()) {
            Statement statement = stmtI1.nextStatement();
            if(statement.getObject().isLiteral()) {
              System.out.println("    hasScale impossible:"+statement.getObject());             
            } else if(statement.getObject().isResource()) {
View Full Code Here

Examples of com.hp.hpl.jena.rdf.model.Model.listStatements()

            if(statement.getObject().isLiteral()) {
              System.out.println("    hasScale impossible:"+statement.getObject());             
            } else if(statement.getObject().isResource()) {
              System.out.println("    hasScale resource:"+statement.getObject());
              Resource scaResource = statement.getObject().asResource();                 
              StmtIterator stmtI2 = model.listStatements(scaResource,
                   (Property)null, (RDFNode)null);
               while(stmtI2.hasNext()) {
                Statement statement2 = stmtI2.nextStatement();
                System.out.println("      "+statement2.getPredicate().getLocalName()
                    +" "+statement2.getObject());
View Full Code Here

Examples of com.hp.hpl.jena.rdf.model.Model.listStatements()

            System.out.println("The database contains resources of type collectingSystem:");
            while (iters.hasNext()) {
                Resource resource = iters.nextResource();
                System.out.println("  " + resource.getLocalName());
                /* name */
                StmtIterator stmtI1 = model.listStatements(resource, name, (RDFNode)null);
        while(stmtI1.hasNext()) {
            Statement statement = stmtI1.nextStatement();
            if(statement.getObject().isLiteral()) {
              System.out.println("    name:"+statement.getObject());             
            } else if(statement.getObject().isResource()) {
View Full Code Here

Examples of com.hp.hpl.jena.rdf.model.Model.listStatements()

            } else {
              System.out.println("    name no literal no resource");
            }
          }       
        /* uriFormat */
        stmtI1 = model.listStatements(resource, uriFormat, (RDFNode)null);
        while(stmtI1.hasNext()) {
            Statement statement = stmtI1.nextStatement();
            if(statement.getObject().isLiteral()) {
              System.out.println("    uriFormat:"+statement.getObject());             
            } else if(statement.getObject().isResource()) {
View Full Code Here

Examples of com.hp.hpl.jena.rdf.model.Model.listStatements()

            System.out.println("The database contains resources of type community:");
            while (iters.hasNext()) {
                Resource resource = iters.nextResource();
                System.out.println("  " + resource.getLocalName());
                /* identifier */
                StmtIterator stmtI1 = model.listStatements(resource, identifier, (RDFNode)null);
        while(stmtI1.hasNext()) {
            Statement statement = stmtI1.nextStatement();
            if(statement.getObject().isLiteral()) {
              System.out.println("    identifier:"+statement.getObject());             
            } else if(statement.getObject().isResource()) {
View Full Code Here

Examples of com.hp.hpl.jena.rdf.model.Model.listStatements()

            } else {
              System.out.println("    identifier no literal no resource");
            }
          }
        /* homePage */
                stmtI1 = model.listStatements(resource, homePage, (RDFNode)null);
        while(stmtI1.hasNext()) {
            Statement statement = stmtI1.nextStatement();
            if(statement.getObject().isLiteral()) {
              System.out.println("    homePage:"+statement.getObject());             
            } else if(statement.getObject().isResource()) {
View Full Code Here

Examples of com.hp.hpl.jena.rdf.model.Model.listStatements()

            } else {
              System.out.println("    homePage no literal no resource");
            }
          }
        /* hasCategory */
        stmtI1 = model.listStatements(resource, hasCategory, (RDFNode)null);
        while(stmtI1.hasNext()) {
            Statement statement = stmtI1.nextStatement();
            if(statement.getObject().isLiteral()) {
              System.out.println("    hasCategory impossible:"+statement.getObject());             
            } else if(statement.getObject().isResource()) {
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.