Linked Data

Using the Linked Data is easy. There are three parameters to combine in the path:

  1. Namespace
  2. Resource
  3. Extension

The namespace is the abbreviation of the URI reference for the RDF vocabulary. The namespace parameter is recommended but not required. When absent from the request, a default of 'hmr' is assumed. Example namespaces and their abbreviations include:

Prefix Namespace
hmr http://hunchmanifest.com/resource/
dbp http://dbpedia.org/resource/
hmo http://hunchmanifest.com/ontology/HomeServices.owl#

The resource is the subject of the query and is a required parameter. When the resource is combined with the expanded namespace, it is forms a URI that is specific to a particular subject.

The optional extension parameter is used to specify a desired RDF data syntax of the response. When the extension is not specified, the response of the server is a HTML page meant for human reading. The extension currently supported is Turtle by specifying a period '.' followed by turtle

Examples

Issuing a request for https://api.hunchmanifest.com/data/hmo/Carpentry.turtle would specify a request using the namespace HMO, the subject Carpentry and desired response in turtle.

Issuing a request for https://api.hunchmanifest.com/data/hmo/Carpentry would specify a request using the namespace HMO, the subject Carpentry and the response will show HTML to the user.

Issuing a request for https://api.hunchmanifest.com/data/dbp/Renovation?predicates=rdfs:label,rdfs:comment Would specify a request using the namespace DBP, the subject of Renovation and only the parameters of rdfs:comment, and rdfs:label

Issuing a request for https://api.hunchmanifest.com/data/dbp/Renovation?predicates=rdfs:label,rdfs:comment,rdf:type&languages=uk,en Would specify a request using the namespace DBP, the subject of Renovation and only the parameters of rdfs:comment, rdfs:label, and rdf:type and only in the languages of uk and en. NOTE: if the predicate does not have a language tag it will not be shown when languages are specified.