Class RdfUtils

java.lang.Object
org.apache.juneau.marshall.jena.RdfUtils

public class RdfUtils extends Object
Utility classes.
See Also:
  • Method Details

    • findNamespace

      public static Namespace findNamespace(List<Rdf> rdfs, List<RdfSchema> schemas)
      Find the namespace given a list of @Rdf and @RdfSchema annotations.

      The annotations should be a child-to-parent ordering of annotations found on a class or method.

      Parameters:
      rdfs - The @Rdf annotations to search. Must not be null.
      schemas - The list of known RDF schemas. Must not be null.
      Returns:
      The resolved namespace, or null if the namespace could not be resolved.