Package org.wikier.trioo.jtrioo.rdf

Examples of org.wikier.trioo.jtrioo.rdf.Property


    if (term instanceof CURIE) {
      curie = (CURIE)term;
     
    }
    if (term instanceof Property) {
      Property property = (Property)term;
      curie = property.getType();
    }
    if (term instanceof Literal) {
      Literal literal = (Literal)term;
      curie = literal.getDatatype();
    }
View Full Code Here


    return resource;
  }

  private static void extractProperty(RDFMetaResource resource, String name, Class<?> type, RdfProperty propertyResource) {
    logger.debug("Extracted property '" + propertyResource.type() + "' for the attribute '" + type + " " + name + "'");
    Arc arc = new Arc(new Property(propertyResource.type()), name, type);
    //arc.setMultivalued(propertyResource.multivalued());
    arc.setOptional(propertyResource.optional());
    resource.addProperty(arc);
  }
View Full Code Here

    resource.addProperty(arc);
  }
 
  private static void extractLiteral(RDFMetaResource resource, String name, Class<?> type, Literal literal) {
    logger.debug("Extracted literal '" + literal.type() + "' for the attribute '" + type + " " + name + "'");
    Arc arc = new Arc(new Property(literal.type()), name, type);
    //arc.setMultivalued(literal.multivalued());
    arc.setOptional(literal.optional());
    arc.setLang(literal.lang());
    arc.setDatatype(literal.datatype());
    resource.addProperty(arc);
View Full Code Here

TOP

Related Classes of org.wikier.trioo.jtrioo.rdf.Property

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.