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

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


      .getLogger(AbstractModelAddRemove.class);

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


  }

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

  }

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

  @Test
  public void testWrite() throws Exception {
    JModel jm = new JModel(JClass.RDFS_CLASS);
    JPackage jp = new JPackage("test");
    jm.addPackage(jp);
    JClass jc1 = new JClass(jp, "Person", new URIImpl("urn:ex:Person"));
    jc1.setComment("All persons in the world");
    jc1.setJavaSuperclass(new JClass(new JPackage(""),"org.ontoware.rdfreactor.runtime.ReactorRuntimeEntity",new URIImpl("urn:ex:object")));
    jp.getClasses().add(jc1);

    // deprecated
    // JProperty jprop1 = new JProperty("age", new
    // JAttribute(Integer.class),
    // URIUtils.createURI("schema://age"), 1, 1);
    // jc1.getProperties().add(jprop1);
    JProperty jprop2 = new JProperty(jc1, "friend", new URIImpl("urn:ex:knows"), JProperty.NOT_SET, JProperty.NOT_SET );
    jprop2.setComment("A persons knows other persons. They can be considered friends.");
    jprop2.addType(jc1);
    jc1.getProperties().add(jprop2);
    SourceCodeWriter.write(jm, new File(outdir), SourceCodeWriter.TEMPLATE_CLASS,"Prefix");
View Full Code Here

   * @return URI generated for the BlankNode
   */
  private static URI bnodeToUri(BlankNode blankNode, Map<BlankNode,URI> replacement, long counter) {
    URI result = replacement.get(blankNode);
    if(result == null) {
      result = new URIImpl("blank://" + counter);
      // TODO BlankNode identity might be too weak
      replacement.put(blankNode, result);
    }
   
    return result;
View Full Code Here

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

   *
   *             [Generated from RDFReactor template rule #c7]
   */
  public AnnotationProperty(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 OwlThing ( 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 FunctionalProperty ( 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 InverseFunctionalProperty ( 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.