org.xenei.jena.entities.annotations
Annotation Type Subject


@Retention(value=RUNTIME)
public @interface Subject

An annotation that defines an entity class. An entity class is a resource with known properties. The types attribute are the URIs of the entity types as defined by <entity> a <type> The namespace attribute specifies the default namespace for properties.


Optional Element Summary
 String namespace
          The namespace for this subject.
 String[] types
          The types that entities of this type must have to be valid.
 

types

public abstract String[] types
The types that entities of this type must have to be valid. To be a valid entity of this type the resource must have RDFS:type properties with objects with the URIs listed.

Returns:
the list of URIs (Strings) that the RDFS:type properties must have.
Default:
{}

namespace

public abstract String namespace
The namespace for this subject. Must be defined and not be an empty string.

Returns:
The namespace for the properties.
Default:
""


Copyright © 2012 XENEI.com. All Rights Reserved.