Package org.apache.juneau.marshall.jena
Annotation Interface Rdf
@Documented
@Target({PACKAGE,TYPE,FIELD,METHOD})
@Retention(RUNTIME)
@Inherited
public @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:
- {doc jmr.RdfDetails}
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanMarks 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 beanUriMarks 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@RdfNswith 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@RdfNswith the same name through the@RdfSchema(rdfNs)annotation on the package.- Returns:
- The annotation value.
- Default:
- ""
-