Class RdfClassMeta


public class RdfClassMeta extends ExtendedClassMeta
Metadata on classes specific to the RDF serializers and parsers pulled from the @Rdf annotation on the class.
See Also:
  • Constructor Details

    • RdfClassMeta

      Constructor.
      Parameters:
      cm - The class that this annotation is defined on. Must not be null.
      mp - RDF metadata provider (for finding information about other artifacts).
  • Method Details

    • getCollectionFormat

      Returns the @Rdf(collectionFormat) annotation defined on the class.
      Returns:
      The value of the annotation, or RdfCollectionFormat.DEFAULT if the annotation is not specified.
    • getNamespace

      protected Namespace getNamespace()
      Returns the RDF namespace associated with this class.

      Namespace is determined in the following order of @Rdf(prefix) annotation:

      1. Class.
      2. Package.
      3. Superclasses.
      4. Superclass packages.
      5. Interfaces.
      6. Interface packages.
      Returns:
      The namespace associated with this class, or null if no namespace is associated with it.