Package org.ontoware.rdf2go.model

Examples of org.ontoware.rdf2go.model.Model.readFrom()


      //get the rdf response for that url
      StringBuilder sb = new StringBuilder();
      getRdfResponse(sb, url);
       
      tempModel = DbFace.getTempModel();
      tempModel.readFrom(new StringReader(sb.toString()));
     
      ClosableIterator<Statement> statements = tempModel.findStatements(Variable.ANY, RDF.type, tempModel.createURI(siocDataUri));
           
      List<String> postExludedPredicates = null;
      if (siocDataUri.equals(SIOC.Post)) {
View Full Code Here


        };

        final RDF2GoRDFParser parser = new RDF2GoRDFParser();

        final Model modelResult = RDF2Go.getModelFactory().createModel().open();
        modelResult.readFrom(new ByteArrayInputStream(turtle.getBytes()), Syntax.Turtle);
        final Object json = JsonLdProcessor.fromRDF(modelResult, parser);

        assertTrue(Obj.equals(json, expected));
    }
View Full Code Here

        };

        final RDF2GoRDFParser parser = new RDF2GoRDFParser();

        final Model modelResult = RDF2Go.getModelFactory().createModel().open();
        modelResult.readFrom(new ByteArrayInputStream(turtle.getBytes()), Syntax.Turtle);
        final Object json = JsonLdProcessor.fromRDF(modelResult, parser);

        assertTrue(Obj.equals(json, expected));
    }
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.