@Documented @Target(value=PACKAGE) @Retention(value=RUNTIME) @Inherited public @interface RdfSchema
Modifier and Type | Optional Element and Description |
---|---|
String |
namespace
Sets the default RDF namespace URL for all classes in this and child packages.
|
String |
prefix
Sets the default RDF prefix for all classes in this and child packages.
|
RdfNs[] |
rdfNs
Lists all namespace mappings to be used on all classes within this package.
|
public abstract String namespace
Must either be matched with a prefix()
annotation, or an rdfNs()
mapping with the same
@RdfNs.namespaceURI()
value.
public abstract String prefix
Must either be matched with a namespace()
annotation, or an rdfNs()
mapping with the same
RdfNs.prefix()
value.
public abstract RdfNs[] rdfNs
The purpose of this annotation is to allow namespace mappings to be defined in a single location and referred to
by name through just the @Rdf.prefix()
annotation.
Inherited by child packages.
package-info.java
...
Class in package using defined namespaces...
Copyright © 2018 Apache. All rights reserved.