Package org.ontoware.rdf2go.model.node.impl

Examples of org.ontoware.rdf2go.model.node.impl.URIImpl


    }
  }
 
  @Test
  public void testRDF2GoBug2() {
    Statement s = new StatementImpl(new URIImpl("urn:testcontext"), new URIImpl("urn:test"),
            new URIImpl("urn:testpred"), new URIImpl("urn:testobj"));
    this.modelset.addStatement(s);
    for(ClosableIterator<? extends Statement> i = this.modelset
            .findStatements(new QuadPatternImpl(Variable.ANY, Variable.ANY, Variable.ANY,
                    Variable.ANY)); i.hasNext();) {
      i.next();
View Full Code Here


    naoModel.close();
   
    ModelSet mainRepository = RDF2Go.getModelFactory().createModelSet();
    mainRepository.open();
   
    URI rdfModelURI = new URIImpl("ontology:rdf");
    URI naoModelURI = new URIImpl("ontology:nao");
   
    Model model = mainRepository.getModel(rdfModelURI);
    model.open();
    rdfModel.open();
    model.addAll(rdfModel.iterator());
View Full Code Here

   * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
   * @param uriString A URI of this instance, represented as a String
   * @throws ModelRuntimeException if URI syntax is wrong
   */
  public Thing ( Model model, String uriString ) throws ModelRuntimeException {
    this(model, new URIImpl(uriString), true);
  }
View Full Code Here

   * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
   * @param uriString A URI of this instance, represented as a String
   * @throws ModelRuntimeException if URI syntax is wrong
   */
  public Person ( Model model, String uriString ) throws ModelRuntimeException {
    this(model, new URIImpl(uriString), true);
  }
View Full Code Here

   * @throws ModelRuntimeException if URI syntax is wrong
   *
   *             [Generated from RDFReactor template rule #c7]
   */
  public AllDifferent(Model model, String uriString, boolean write) throws ModelRuntimeException {
    super(model, RDFS_CLASS, new URIImpl(uriString, false), write);
  }
View Full Code Here

  }

  @Override
    public void addStatement(String subjectURIString, URI predicate,
      String literal) throws ModelRuntimeException {
    addStatement(new URIImpl(subjectURIString), predicate,
        new PlainLiteralImpl(literal));
  }
View Full Code Here

  }

  @Override
    public void addStatement(String subjectURIString, URI predicate,
      String literal, String languageTag) throws ModelRuntimeException {
    addStatement(new URIImpl(subjectURIString), predicate,
        new LanguageTagLiteralImpl(literal, languageTag));
  }
View Full Code Here

  }

  @Override
    public void addStatement(String subjectURIString, URI predicate,
      String literal, URI datatypeURI) throws ModelRuntimeException {
    addStatement(new URIImpl(subjectURIString), predicate,
        new DatatypeLiteralImpl(literal, datatypeURI));
  }
View Full Code Here

   * @throws ModelRuntimeException if URI syntax is wrong
   *
   * [Generated from RDFReactor template rule #c7]
   */
  public OntologyProperty ( Model model, String uriString, boolean write) throws ModelRuntimeException {
    super(model, RDFS_CLASS, new URIImpl(uriString,false), write);
  }
View Full Code Here

   * @throws ModelRuntimeException if URI syntax is wrong
   *
   * [Generated from RDFReactor template rule #c7]
   */
  public ContainerMembershipProperty ( Model model, String uriString, boolean write) throws ModelRuntimeException {
    super(model, RDFS_CLASS, new URIImpl(uriString,false), write);
  }
View Full Code Here

TOP

Related Classes of org.ontoware.rdf2go.model.node.impl.URIImpl

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.