Package thewebsemantic
Interface As
-
- All Known Subinterfaces:
DCTerms,DublinCore,Foaf,Foaf.Image,Foaf.Person,Geo,Geo.Point,Ical,Ical.Vevent,Rdfs,Rdfs.Class,Rdfs.Resource,ReviewVocab,ReviewVocab.Comment,ReviewVocab.Feedback,ReviewVocab.Review,Sioc,Sioc.Community,Sioc.Container,Sioc.Forum,Sioc.Item,Sioc.Post,Sioc.Role,Sioc.Site,Sioc.Space,Sioc.Thread,Sioc.User,Sioc.UserGroup,Skos,Skos.Concept,Skos.ConceptScheme
- All Known Implementing Classes:
Thing
public interface AsProvides standard polymorphic interface forThingvocabulary interfaces. Theas(Class)method returns dynamic proxies related to the same model for a different vocabulary, whileisa(Class)does the same thing in addition to asserting a classification(a rdf:type p). Typically the interface is used allong with theNamespaceannotation like this:
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> Tas(Class<T> c)Polymorph this proxied interface into a new vocabulary by providing it's class.org.apache.jena.rdf.model.ResourceasResource()Provides access to the raw Jena resource in focus.<T> Tisa(Class<T> c)Polymorph and reclassify this proxied interface into a new vocabulary by providing it's class.
-
-
-
Method Detail
-
as
<T> T as(Class<T> c)
Polymorph this proxied interface into a new vocabulary by providing it's class.- Returns:
- a dynamic proxy related to the connected Jena model of this proxy.
-
isa
<T> T isa(Class<T> c)
Polymorph and reclassify this proxied interface into a new vocabulary by providing it's class.- Returns:
- a dynamic proxy related to the connected Jena model of this proxy.
-
asResource
org.apache.jena.rdf.model.Resource asResource()
Provides access to the raw Jena resource in focus. All requests or sets on this proxy apply the the resource- Returns:
- the underlying Jena resource targeted by this proxy.
-
-