Annotation Interface Rdf


Annotation for specifying options for RDF serializers.

Can be used in the following locations:

  • Marshalled classes/methods/fields/packages.

Can be used for the following:

  • Override the default behavior of how collections and arrays are serialized.
See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Marks a bean property as a resource URI identifier for the bean.
    The format for how collections (lists and arrays for example) are serialized in RDF.
    Sets the namespace URI of this property or class.
    Sets the XML prefix of this property or class.
  • Element Details

    • beanUri

      boolean beanUri
      Marks a bean property as a resource URI identifier for the bean.

      Has the following effects on the following serializers:

      • RdfSerializer - Will be rendered as the value of the "rdf:about" attribute for the bean.
      Returns:
      The annotation value.
      Default:
      false
    • collectionFormat

      The format for how collections (lists and arrays for example) are serialized in RDF.
      Returns:
      The annotation value.
      See Also:
      Default:
      DEFAULT
    • namespace

      Sets the namespace URI of this property or class.

      Must be matched with a @Rdf(prefix) annotation on this object, a parent object, or a @RdfNs with the same name through the @RdfSchema(rdfNs) annotation on the package.

      Returns:
      The annotation value.
      Default:
      ""
    • prefix

      Sets the XML prefix of this property or class.

      Must either be matched to a @Rdf(namespace) annotation on the same object, parent object, or a @RdfNs with the same name through the @RdfSchema(rdfNs) annotation on the package.

      Returns:
      The annotation value.
      Default:
      ""