Package com.clarkparsia.empire.annotation

Examples of com.clarkparsia.empire.annotation.RdfsClass


   
    if (!BeanReflectUtil.hasAnnotation(clazz2, RdfsClass.class)) {
      return false;
    }
   
    RdfsClass rdfsClass1 = BeanReflectUtil.getAnnotation(clazz1, RdfsClass.class);
    RdfsClass rdfsClass2 = BeanReflectUtil.getAnnotation(clazz2, RdfsClass.class);
   
    String type1 = PrefixMapping.GLOBAL.uri(rdfsClass1.value());
    String type2 = PrefixMapping.GLOBAL.uri(rdfsClass2.value());
   
    return type1.equals(type2);
  }
View Full Code Here


      LOGGER.debug("Class valid check {} ms ", (System.currentTimeMillis() - start));
    }

    start = System.currentTimeMillis();
   
    RdfsClass aClass = theClass.getAnnotation(RdfsClass.class);

    if (LOGGER.isDebugEnabled()) {
      LOGGER.debug("Got annotation in {} ms ", (System.currentTimeMillis() - start));
    }

    start = System.currentTimeMillis();
   
    // this init should be handled by the static block in RdfGenerator, but if there is no annotation index,
    // or RdfGenerator has not been referenced, the namespace stuff will not have been initialized.  so we'll
    // call this here as a backup.
    RdfGenerator.addNamespaces(theClass);

    QueryBuilder<ParsedTupleQuery> aQuery = QueryBuilderFactory.select("result").distinct()
        .group().atom("result", RDF.TYPE, ValueFactoryImpl.getInstance().createURI(PrefixMapping.GLOBAL.uri(aClass.value()))).closeGroup();

    if (LOGGER.isDebugEnabled()) {
      LOGGER.debug("Created query in {} ms ", (System.currentTimeMillis() - start));
    }
View Full Code Here

TOP

Related Classes of com.clarkparsia.empire.annotation.RdfsClass

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.