|
|||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| GeoVocab.java | - | 100% | 100% | 100% |
|
||||||||||||||
| 1 | /* CVS $Id: $ */ | |
| 2 | package photospace.meta.rdf; | |
| 3 | import com.hp.hpl.jena.rdf.model.*; | |
| 4 | ||
| 5 | /** | |
| 6 | * Vocabulary definitions from file:C:\photospace\project/etc/rdf/geo.rdf | |
| 7 | * @author Auto-generated by schemagen on 19 Nov 2004 13:41 | |
| 8 | */ | |
| 9 | public class GeoVocab { | |
| 10 | /** <p>The RDF model that holds the vocabulary terms</p> */ | |
| 11 | private static Model m_model = ModelFactory.createDefaultModel(); | |
| 12 | ||
| 13 | /** <p>The namespace of the vocabalary as a string ({@value})</p> */ | |
| 14 | public static final String NS = "http://www.w3.org/2003/01/geo/wgs84_pos#"; | |
| 15 | ||
| 16 | /** <p>The namespace of the vocabalary as a string</p> | |
| 17 | * @see #NS */ | |
| 18 | 10 | public static String getURI() {return NS;} |
| 19 | ||
| 20 | /** <p>The namespace of the vocabalary as a resource</p> */ | |
| 21 | public static final Resource NAMESPACE = m_model.createResource( NS ); | |
| 22 | ||
| 23 | /** <p>The WGS84 longitude of a SpatialThing.</p> */ | |
| 24 | public static final Property LONG = m_model.createProperty( "http://www.w3.org/2003/01/geo/wgs84_pos#long" ); | |
| 25 | ||
| 26 | /** <p>The WGS84 latitude of a SpatialThing.</p> */ | |
| 27 | public static final Property LAT = m_model.createProperty( "http://www.w3.org/2003/01/geo/wgs84_pos#lat" ); | |
| 28 | ||
| 29 | /** <p>The WGS84 altitude of a SpatialThing.</p> */ | |
| 30 | public static final Property ALT = m_model.createProperty( "http://www.w3.org/2003/01/geo/wgs84_pos#alt" ); | |
| 31 | ||
| 32 | /** <p>Anything with spatial extent, i.e. size, shape, or position. e.g. people, | |
| 33 | * places, bowling balls, as well as abstract areas like cubes.</p> | |
| 34 | */ | |
| 35 | public static final Resource SPATIAL_THING = m_model.createResource( "http://www.w3.org/2003/01/geo/wgs84_pos#SpatialThing" ); | |
| 36 | ||
| 37 | /** <p>Uniquely identified by lat/long/alt. i.e. spaciallyIntersects(P1, P2) :- lat(P1, | |
| 38 | * LAT), long(P1, LONG), alt(P1, ALT), lat(P2, LAT), long(P2, LONG), alt(P2, | |
| 39 | * ALT). sameThing(P1, P2) :- type(P1, Point), type(P2, Point), spaciallyIntersects(P1, | |
| 40 | * P2).A point, typically described using a coordinate system relative to Earth, | |
| 41 | * such as WGS84.</p> | |
| 42 | */ | |
| 43 | public static final Resource POINT = m_model.createResource( "http://www.w3.org/2003/01/geo/wgs84_pos#Point" ); | |
| 44 | ||
| 45 | } |
|
||||||||||