PageRenderTime 53ms CodeModel.GetById 26ms RepoModel.GetById 0ms app.codeStats 1ms

/branches/green/json-rdf/src/main/java/com/epimorphics/vocabs/API.java

https://bitbucket.org/pombredanne/linked-data-api-treemap
Java | 167 lines | 47 code | 43 blank | 77 comment | 0 complexity | 7eda618a3c8c0a57afdb4b91c1fa58f1 MD5 | raw file
  1. /* CVS $Id: $ */
  2. package com.epimorphics.vocabs;
  3. import com.hp.hpl.jena.rdf.model.*;
  4. import com.hp.hpl.jena.ontology.*;
  5. /**
  6. * Vocabulary definitions from src/main/vocabs/api.ttl
  7. * @author Auto-generated by schemagen on 14 Feb 2010 16:00
  8. */
  9. public class API {
  10. /** <p>The ontology model that holds the vocabulary terms</p> */
  11. private static OntModel m_model = ModelFactory.createOntologyModel( OntModelSpec.OWL_MEM, null );
  12. /** <p>The namespace of the vocabulary as a string</p> */
  13. public static final String NS = "http://www.epimorphics.com/vocabularies/api#";
  14. /** <p>The namespace of the vocabulary as a string</p>
  15. * @see #NS */
  16. public static String getURI() {return NS;}
  17. /** <p>The namespace of the vocabulary as a resource</p> */
  18. public static final Resource NAMESPACE = m_model.createResource( NS );
  19. /** <p>designates the (potentially) ordered set of results within this page of the
  20. * whole results set</p>
  21. */
  22. public static final ObjectProperty contains = m_model.createObjectProperty( "http://www.epimorphics.com/vocabularies/api#contains" );
  23. /** <p>points to a viewer which should be used as the default view filter</p> */
  24. public static final ObjectProperty defaultViewer = m_model.createObjectProperty( "http://www.epimorphics.com/vocabularies/api#defaultViewer" );
  25. /** <p>indicates a query endpoint provided by this API</p> */
  26. public static final ObjectProperty endpoint = m_model.createObjectProperty( "http://www.epimorphics.com/vocabularies/api#endpoint" );
  27. /** <p>indicates a URL from which the content of this List/Set can be obtained</p> */
  28. public static final ObjectProperty listURL = m_model.createObjectProperty( "http://www.epimorphics.com/vocabularies/api#listURL" );
  29. /** <p>indicates a URL from which the specification of this view can be obtained</p> */
  30. public static final ObjectProperty metaURL = m_model.createObjectProperty( "http://www.epimorphics.com/vocabularies/api#metaURL" );
  31. /** <p>gives a selector from which selector should inherit</p> */
  32. public static final ObjectProperty parent = m_model.createObjectProperty( "http://www.epimorphics.com/vocabularies/api#parent" );
  33. /** <p>points to a single prefix/namespace binding to use in embedded queries</p> */
  34. public static final ObjectProperty prefixMaping = m_model.createObjectProperty( "http://www.epimorphics.com/vocabularies/api#prefixMaping" );
  35. /** <p>gives a property to include in the templated view</p> */
  36. public static final ObjectProperty properties = m_model.createObjectProperty( "http://www.epimorphics.com/vocabularies/api#properties" );
  37. /** <p>points to the specification for which resources to include in the data view</p> */
  38. public static final ObjectProperty selector = m_model.createObjectProperty( "http://www.epimorphics.com/vocabularies/api#selector" );
  39. /** <p>indicates the SPARQL endpoint to be used for an API</p> */
  40. public static final ObjectProperty sparqlEndpoint = m_model.createObjectProperty( "http://www.epimorphics.com/vocabularies/api#sparqlEndpoint" );
  41. /** <p>indicates the class of the resources which make up this set/list</p> */
  42. public static final ObjectProperty type = m_model.createObjectProperty( "http://www.epimorphics.com/vocabularies/api#type" );
  43. /** <p>points to a viewer defining the set of properties to include in the view (can
  44. * be given in a query using _viewer)</p>
  45. */
  46. public static final ObjectProperty viewer = m_model.createObjectProperty( "http://www.epimorphics.com/vocabularies/api#viewer" );
  47. /** <p>reference to a vocabulary (aka ontology) resource which may contain annotations
  48. * to help with serialization and API access</p>
  49. */
  50. public static final ObjectProperty vocabulary = m_model.createObjectProperty( "http://www.epimorphics.com/vocabularies/api#vocabulary" );
  51. /** <p>gives a short name which can be used for any class or property</p> */
  52. public static final DatatypeProperty label = m_model.createDatatypeProperty( "http://www.epimorphics.com/vocabularies/api#label" );
  53. /** <p>gives the namespace part of a prefix mapping, as a plain string</p> */
  54. public static final DatatypeProperty namespace = m_model.createDatatypeProperty( "http://www.epimorphics.com/vocabularies/api#namespace" );
  55. /** <p>gives a default ordering for the list, can be a prop, prop chain optionally
  56. * followed by - to indicate descending (can be given in a query using _orderby=spec)</p>
  57. */
  58. public static final DatatypeProperty orderby = m_model.createDatatypeProperty( "http://www.epimorphics.com/vocabularies/api#orderby" );
  59. /** <p>gives the number of the page within parent list</p> */
  60. public static final DatatypeProperty page = m_model.createDatatypeProperty( "http://www.epimorphics.com/vocabularies/api#page" );
  61. /** <p>gives the number of items per page</p> */
  62. public static final DatatypeProperty pageSize = m_model.createDatatypeProperty( "http://www.epimorphics.com/vocabularies/api#pageSize" );
  63. public static final DatatypeProperty paramVar = m_model.createDatatypeProperty( "http://www.epimorphics.com/vocabularies/api#paramVar" );
  64. /** <p>gives the prefix part of a prefix mapping, as a plain string</p> */
  65. public static final DatatypeProperty prefix = m_model.createDatatypeProperty( "http://www.epimorphics.com/vocabularies/api#prefix" );
  66. /** <p>gives a query filter in the same syntax as request queries, supported syntax
  67. * includes - property=value - prop1.prop2. ... propn=value - name-prop=value
  68. * (equivalent to prop.rdfs_label=value) - min-prop=value (matches greater than
  69. * or equal to value) - minO-prop=value (open min, matches greater than or value)
  70. * - max-prop=value (matches less than or equal to value) - maxO-prop=value (open
  71. * max, matches less than value)</p>
  72. */
  73. public static final DatatypeProperty query = m_model.createDatatypeProperty( "http://www.epimorphics.com/vocabularies/api#query" );
  74. public static final DatatypeProperty resourceVar = m_model.createDatatypeProperty( "http://www.epimorphics.com/vocabularies/api#resourceVar" );
  75. /** <p>gives the query that is run to find entries in this list</p> */
  76. public static final DatatypeProperty sparqlQuery = m_model.createDatatypeProperty( "http://www.epimorphics.com/vocabularies/api#sparqlQuery" );
  77. /** <p>indicates the URI for the API endpoint, relative to the server base</p> */
  78. public static final DatatypeProperty uri = m_model.createDatatypeProperty( "http://www.epimorphics.com/vocabularies/api#uri" );
  79. /** <p>indicates the URI or URI template for the API endpoint, relative to the server
  80. * base</p>
  81. */
  82. public static final DatatypeProperty uriTemplate = m_model.createDatatypeProperty( "http://www.epimorphics.com/vocabularies/api#uriTemplate" );
  83. /** <p>gives a SPARQL WHERE clause (GroupGraphPattern excluding {}) to filter the
  84. * view (can be given in the query using _where)</p>
  85. */
  86. public static final DatatypeProperty where = m_model.createDatatypeProperty( "http://www.epimorphics.com/vocabularies/api#where" );
  87. /** <p>an API resource binds a set of related views to a SPARQL endpoint, also providing
  88. * cross-api settings</p>
  89. */
  90. public static final OntClass API = m_model.createClass( "http://www.epimorphics.com/vocabularies/api#API" );
  91. /** <p>a viewer which provides a full DESCRIBE of each resource, where the semantics
  92. * of DESCRIBE is defined by the underlying sparqlEndpoint</p>
  93. */
  94. public static final OntClass DescribeViewer = m_model.createClass( "http://www.epimorphics.com/vocabularies/api#DescribeViewer" );
  95. /** <p>a particular query endpoint within an API, represents a List or Set of resources
  96. * selected from the bound SPARQL endpoint</p>
  97. */
  98. public static final OntClass Endpoint = m_model.createClass( "http://www.epimorphics.com/vocabularies/api#Endpoint" );
  99. /** <p>class used to mark properties that should not be included in serialization</p> */
  100. public static final OntClass Hidden = m_model.createClass( "http://www.epimorphics.com/vocabularies/api#Hidden" );
  101. /** <p>an API Endpoint representing a single resource</p> */
  102. public static final OntClass ItemEndpoint = m_model.createClass( "http://www.epimorphics.com/vocabularies/api#ItemEndpoint" );
  103. /** <p>an API Endpoint representing and ordered list of resources</p> */
  104. public static final OntClass ListEndpoint = m_model.createClass( "http://www.epimorphics.com/vocabularies/api#ListEndpoint" );
  105. /** <p>class used to mark properties that should be serialized as if they are multivalued,
  106. * irrespective of their cardinality on any particular instance</p>
  107. */
  108. public static final OntClass Multivalued = m_model.createClass( "http://www.epimorphics.com/vocabularies/api#Multivalued" );
  109. /** <p>represents a page of results from a (possibly large) results document</p> */
  110. public static final OntClass Page = m_model.createClass( "http://www.epimorphics.com/vocabularies/api#Page" );
  111. /** <p>Represents a single prefix/namespace pair</p> */
  112. public static final OntClass PrefixMapping = m_model.createClass( "http://www.epimorphics.com/vocabularies/api#PrefixMapping" );
  113. /** <p>A Selector specifies which resources match the query</p> */
  114. public static final OntClass Selector = m_model.createClass( "http://www.epimorphics.com/vocabularies/api#Selector" );
  115. /** <p>a viewer which uses a template, defined by a set of property (paths), to filter
  116. * the view</p>
  117. */
  118. public static final OntClass TemplateViewer = m_model.createClass( "http://www.epimorphics.com/vocabularies/api#TemplateViewer" );
  119. /** <p>defines a (possibly named) subset of properties on list entries which should
  120. * be included in the returned model (named viewers can be invoked in a query
  121. * using _show)</p>
  122. */
  123. public static final OntClass Viewer = m_model.createClass( "http://www.epimorphics.com/vocabularies/api#Viewer" );
  124. }