Package org.evolizer.ontology.exporter.api

Examples of org.evolizer.ontology.exporter.api.IRDFPropertyConverter


      rdf annotation = method.getAnnotation(rdf.class);
      if(annotation != null) {
        Class<?> returnType = method.getReturnType();
        Object value = DefaultReflectionProvider.invoke(method, instance);
       
        IRDFPropertyConverter converter = ConverterRegistry.getConverterFor(returnType);
        Collection<Statement<?, ?>> statementsToAdd = converter.convert(instance,  RDFReflectionUtil.uriReferenceOf(method), value);
        statements.addAll(statementsToAdd);
      }
      break;
    case PREDICATE:
      subject sAnnotation = method.getAnnotation(subject.class);
View Full Code Here


   
    Collection<?> collection = (Collection<?>) objectCollection;
    logger.debug("Converting collection with " + collection.size() + " elements.");

    for (Object object : collection) {
      IRDFPropertyConverter converter = ConverterRegistry.getConverterFor(object.getClass());
      Collection<Statement<?, ?>> statementsToAdd = converter.convert(subject,  propertyURI, object);
      statements.addAll(statementsToAdd);
    }
   
    return statements;
  }
View Full Code Here

TOP

Related Classes of org.evolizer.ontology.exporter.api.IRDFPropertyConverter

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.