Package com.clarkparsia.empire.annotation

Examples of com.clarkparsia.empire.annotation.NamedGraph.type()


   */
  public static boolean hasNamedGraphSpecified(Object theObj) {
    NamedGraph aAnnotation = theObj.getClass().getAnnotation(NamedGraph.class);

    return aAnnotation != null &&
         (aAnnotation.type() == NamedGraph.NamedGraphType.Instance || (aAnnotation.type() == NamedGraph.NamedGraphType.Static
                                       && !aAnnotation.value().equals("")));
  }

  /**
   * Returns the URI of the named graph that operations involving instances should be performed.  If null is returned
View Full Code Here


   */
  public static boolean hasNamedGraphSpecified(Object theObj) {
    NamedGraph aAnnotation = theObj.getClass().getAnnotation(NamedGraph.class);

    return aAnnotation != null &&
         (aAnnotation.type() == NamedGraph.NamedGraphType.Instance || (aAnnotation.type() == NamedGraph.NamedGraphType.Static
                                       && !aAnnotation.value().equals("")));
  }

  /**
   * Returns the URI of the named graph that operations involving instances should be performed.  If null is returned
View Full Code Here

      return null;
    }

    NamedGraph aAnnotation = theObj.getClass().getAnnotation(NamedGraph.class);

    if (aAnnotation.type() == NamedGraph.NamedGraphType.Instance) {
      SupportsRdfId aId = asSupportsRdfId(theObj);

      try {
        return asURI(aId);
      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.