Package org.wikier.trioo.jtrioo.rdf.meta

Examples of org.wikier.trioo.jtrioo.rdf.meta.Arc


    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.meta.Arc

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.