/** Ordered collections can be used with collectable semantic relation properties, where you would like a set of concepts to be displayed in a specific order, and optionally under a 'node label'. */ @rdf("http://www.w3.org/2004/02/skos/core#OrderedCollection") public interface OrderedCollection extends Collection { /** The following rule applies for this property: [(?c skos:memberList ?l) elementOfList(?e,?l) implies (?c skos:member ?e)] */ @rdf("http://www.w3.org/2004/02/skos/core#memberList") public abstract Set<List> getSkosMemberLists(); /** The following rule applies for this property: [(?c skos:memberList ?l) elementOfList(?e,?l) implies (?c skos:member ?e)] */ public abstract void setSkosMemberLists(Set<? extends List> value); }
private URI createURI(Class<?> beanClass) { if (beanClass.isAnnotationPresent(rdf.class)) { String[] values = beanClass.getAnnotation(rdf.class).value(); if (values.length > 0) return vf.createURI(values[0]); } String ns = findNamespace(beanClass); if (ns == null) return vf.createURI("java:", beanClass.getName()); String localName = beanClass.getSimpleName(); return vf.createURI(ns + localName); }
private String findNamespace(Class<?> beanClass) { String packageName = getPackageName(beanClass); if (namespaces.containsKey(packageName)) return namespaces.get(packageName); Package pkg = beanClass.getPackage(); if (pkg != null && pkg.isAnnotationPresent(rdf.class)) { String name = pkg.getAnnotation(rdf.class).value()[0]; return getNamespace(name); } return null; }
/** An interactive resource is a resource which requires interaction from the user to be understood, executed, or experienced. For example - forms on web pages, applets, multimedia learning objects, chat services, virtual reality. */ @rdf("http://purl.org/dc/dcmitype/InteractiveResource") public interface InteractiveResource { }
/** The described resource pre-existed the referenced resource, * which is essentially the same intellectual content presented * in another format. */ @rdf({"http://purl.org/dc/terms/hasFormat", "http://purl.org/dc/elements/1.1/relation"}) public abstract Set<Object> getDcHasFormats();
/** The described resource is a version, edition, or adaptation * of the referenced resource. Changes in version imply substantive * changes in content rather than differences in format. */ @rdf({"http://purl.org/dc/terms/isVersionOf", "http://purl.org/dc/elements/1.1/relation"}) public abstract Set<Object> getDcIsVersionOf();
/** Internet RFC 1766 'Tags for the identification of Language' specifies a two letter code taken from ISO 639, followed optionally by a two letter country code taken from ISO 3166. * @see http://www.ietf.org/rfc/rfc1766.txt */ @rdf("http://purl.org/dc/terms/RFC1766") public interface RFC1766 extends DctermsResource { }
/** A text is a resource whose content is primarily words for reading. For example - books, letters, dissertations, poems, newspapers, articles, archives of mailing lists. Note that facsimiles or images of texts are still of the genre text. */ @rdf("http://purl.org/dc/dcmitype/Text") public interface Text { }
/** The Internet media type of the resource. * @see http://www.iana.org/assignments/media-types/ */ @rdf("http://purl.org/dc/terms/IMT") public interface IMT extends DctermsResource { }
/** Dewey Decimal Classification * @see http://www.oclc.org/dewey/index.htm */ @rdf("http://purl.org/dc/terms/DDC") public interface DDC extends DctermsResource { }
/** A list of types used to categorize the nature or genre of the content of the resource. * @see http://dublincore.org/documents/dcmi-type-vocabulary/ */ @rdf("http://purl.org/dc/terms/DCMIType") public interface DCMIType extends DctermsResource { }
/** A sound is a resource whose content is primarily intended to be rendered as audio. For example - a music playback file format, an audio compact disc, and recorded speech or sounds. */ @rdf("http://purl.org/dc/dcmitype/Sound") public interface Sound { }
/** A resource which has one or more web accessible representations (taking access rights and potential system failure into account). */ @rdf("http://sw.nokia.com/WebArch-1/WebResource") public interface WebResource extends Resource, WebarchResource { }
/** * Name. The text input field's (variable) name. */ @rdf("http://purl.org/rss/1.0/name") public abstract String getRssName();
/** An EventEdge denotes an Edge associated with a time instant. */ @rdf("http://openprovenance.org/model/opmo#EventEdge") public interface EventEdge extends Entity, Edge, Annotable { /** A piece of timing information associated with an EventEdge. */ @rdf("http://openprovenance.org/model/opmo#time") OTime getTime(); /** A piece of timing information associated with an EventEdge. */ void setTime(OTime time); }
@rdf("http://www.w3.org/2002/07/owl#AllDifferent") public interface AllDifferent extends Thing { /** http://www.w3.org/2002/07/owl#distinctMembers */ @rdf("http://www.w3.org/2002/07/owl#distinctMembers") public abstract List<Thing> getOwlDistinctMembers(); /** http://www.w3.org/2002/07/owl#distinctMembers */ public abstract void setOwlDistinctMembers(List<? extends Thing> value); }
/** A general statement describing the education or * training context. Alternatively, a more specific * statement of the location of the audience in terms of * its progression through an education or training context. */ @rdf({"http://purl.org/dc/terms/educationLevel", "http://purl.org/dc/terms/audience"}) public abstract Set<Object> getDcEducationLevel();
/** An inanimate, three-dimensional object or substance. For example -- a computer, the great pyramid, a sculpture. Note that digital representations of, or surrogates for, these things should use Image, Text or one of the other types. */ @rdf("http://purl.org/dc/dcmitype/PhysicalObject") public interface PhysicalObject { }
/** A collection is an aggregation of items. The term collection means that the resource is described as a group; its parts may be separately described and navigated. */ @rdf("http://purl.org/dc/dcmitype/Collection") public interface Collection { }
/** ISO 639-2: Codes for the representation of names of languages. * @see http://lcweb.loc.gov/standards/iso639-2/langhome.html */ @rdf("http://purl.org/dc/terms/ISO639-2") public interface ISO6392 extends DctermsResource { }