Package org.openrdf.model.impl

Examples of org.openrdf.model.impl.ValueFactoryImpl.createLiteral()


                        writer.handleStatement(vf.createStatement(sd, SPARQL_SD.resultFormat, vf.createURI(formatUri)));
                    } else {
                        final BNode fNode = vf.createBNode();
                        writer.handleStatement(vf.createStatement(sd, SPARQL_SD.resultFormat, fNode));
                        writer.handleStatement(vf.createStatement(fNode, RDF.TYPE, vf.createURI("http://www.w3.org/ns/formats/Format")));
                        writer.handleStatement(vf.createStatement(fNode, vf.createURI("http://www.w3.org/ns/formats/media_type"), vf.createLiteral(f.getDefaultMIMEType())));
                        writer.handleStatement(vf.createStatement(fNode, vf.createURI("http://www.w3.org/ns/formats/preferred_suffix"), vf.createLiteral("."+f.getDefaultFileExtension())));
                    }
                }
            }
View Full Code Here


                    } else {
                        final BNode fNode = vf.createBNode();
                        writer.handleStatement(vf.createStatement(sd, SPARQL_SD.resultFormat, fNode));
                        writer.handleStatement(vf.createStatement(fNode, RDF.TYPE, vf.createURI("http://www.w3.org/ns/formats/Format")));
                        writer.handleStatement(vf.createStatement(fNode, vf.createURI("http://www.w3.org/ns/formats/media_type"), vf.createLiteral(f.getDefaultMIMEType())));
                        writer.handleStatement(vf.createStatement(fNode, vf.createURI("http://www.w3.org/ns/formats/preferred_suffix"), vf.createLiteral("."+f.getDefaultFileExtension())));
                    }
                }
            }

            final BNode dataset = vf.createBNode();
View Full Code Here

                // FIXME: Default graph, in KiWi this is all - is it not?
                final BNode defaultGraph = vf.createBNode();
                writer.handleStatement(vf.createStatement(dataset, SPARQL_SD.defaultGraph, defaultGraph));
                writer.handleStatement(vf.createStatement(defaultGraph, RDF.TYPE, SPARQL_SD.Graph));
                // TODO: Number of triples here? This can be expensive!
                writer.handleStatement(vf.createStatement(defaultGraph, vf.createURI("http://rdfs.org/ns/void#triples"), vf.createLiteral(kiwiCon.size())));

                final RepositoryResult<Resource> cID = kiwiCon.getContextIDs();
                try {
                    while (cID.hasNext()) {
                        final Resource c = cID.next();
View Full Code Here

                            writer.handleStatement(vf.createStatement(ng, SPARQL_SD.name, c));
                            final BNode g = vf.createBNode();
                            writer.handleStatement(vf.createStatement(ng, SPARQL_SD.graph, g));
                            writer.handleStatement(vf.createStatement(g, RDF.TYPE, SPARQL_SD.Graph));
                            // TODO: Number of triples here? This can be expensive!
                            writer.handleStatement(vf.createStatement(g, vf.createURI("http://rdfs.org/ns/void#triples"), vf.createLiteral(kiwiCon.size(c))));

                        }
                    }
                } finally {
                    cID.close();
View Full Code Here

  public Resource export(Model model) {
    Resource implNode = super.export(model);
    ValueFactoryImpl vf = ValueFactoryImpl.getInstance();

    if (hostlist != null) {
      model.add(implNode, HOSTLIST, vf.createLiteral(hostlist));
    }
    if (username != null) {
      model.add(implNode, USERNAME, vf.createLiteral(username));
    }
    if (password != null) {
View Full Code Here

    if (hostlist != null) {
      model.add(implNode, HOSTLIST, vf.createLiteral(hostlist));
    }
    if (username != null) {
      model.add(implNode, USERNAME, vf.createLiteral(username));
    }
    if (password != null) {
      model.add(implNode, PASSWORD, vf.createLiteral(password));
    }
View Full Code Here

    }
    if (username != null) {
      model.add(implNode, USERNAME, vf.createLiteral(username));
    }
    if (password != null) {
      model.add(implNode, PASSWORD, vf.createLiteral(password));
    }

    if (defGraph != null) {
      model.add(implNode, DEFGRAPH, vf.createLiteral(defGraph));
    }
View Full Code Here

    if (password != null) {
      model.add(implNode, PASSWORD, vf.createLiteral(password));
    }

    if (defGraph != null) {
      model.add(implNode, DEFGRAPH, vf.createLiteral(defGraph));
    }

    if (ruleSet != null && ruleSet.length() > 0 && !ruleSet.equals("null")) {
      model.add(implNode, RULESET, vf.createLiteral(ruleSet));
    }
View Full Code Here

    if (defGraph != null) {
      model.add(implNode, DEFGRAPH, vf.createLiteral(defGraph));
    }

    if (ruleSet != null && ruleSet.length() > 0 && !ruleSet.equals("null")) {
      model.add(implNode, RULESET, vf.createLiteral(ruleSet));
    }

    model.add(implNode, USELAZYADD, vf.createLiteral(new Boolean(useLazyAdd).toString()));

    model.add(implNode, ROUNDROBIN, vf.createLiteral(new Boolean(roundRobin).toString()));
View Full Code Here

    if (ruleSet != null && ruleSet.length() > 0 && !ruleSet.equals("null")) {
      model.add(implNode, RULESET, vf.createLiteral(ruleSet));
    }

    model.add(implNode, USELAZYADD, vf.createLiteral(new Boolean(useLazyAdd).toString()));

    model.add(implNode, ROUNDROBIN, vf.createLiteral(new Boolean(roundRobin).toString()));

    model.add(implNode, FETCHSIZE, vf.createLiteral(Integer.toString(fetchSize,10)));
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.