@Documented @Target(value={PACKAGE,TYPE,FIELD,METHOD}) @Retention(value=RUNTIME) @Inherited public @interface Rdf
Can be applied to Java packages, types, fields, and methods.
Can be used for the following:
Modifier and Type | Optional Element and Description |
---|---|
boolean |
beanUri
Marks a bean property as a resource URI identifier for the bean.
|
RdfCollectionFormat |
collectionFormat
The format for how collections (lists and arrays for example) are serialized in RDF.
|
String |
namespace
Sets the namespace URI of this property or class.
|
String |
on
Dynamically apply this annotation to the specified classes/methods/fields.
|
String |
prefix
Sets the XML prefix of this property or class.
|
public abstract boolean beanUri
Has the following effects on the following serializers:
RdfSerializer
- Will be rendered as the value of the public abstract RdfCollectionFormat collectionFormat
RdfCollectionFormat
public abstract String namespace
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.
public abstract String on
Used in conjunction with the RdfConfig.applyRdf()
.
It is ignored when the annotation is applied directly to classes/methods/fields.
public abstract String prefix
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.
Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.