OxiEphemeris SPARQL endpoint

A read-only SPARQL 1.1 endpoint over the OxiEphemeris astrology vocabulary — 1378 triples, served from the edge.

Querying it

Send a query to https://sparql.cooljapan.tech/sparql as ?query=… on a GET, or as an application/sparql-query body on a POST. Content negotiation follows Accept:

SELECT, ASK application/sparql-results+json (default), application/sparql-results+xml, text/csv, text/tab-separated-values
CONSTRUCT, DESCRIBE text/turtle (default), application/n-triples
The endpoint itself text/turtle here returns its SPARQL Service Description and VoID
curl -H 'accept: application/sparql-results+json' \
  --data-urlencode 'query=SELECT * WHERE { ?s ?p ?o } LIMIT 5' \
  https://sparql.cooljapan.tech/sparql

Open it in YASGUI, or fetch the stored queries from /sparql/examples.

What it refuses

The endpoint runs inside a ~10 ms CPU budget per request, so it turns away the query shapes it cannot afford rather than timing out on them:

Examples

The planets that rule Gemini

The traditional and the modern ruler of Gemini, with their labels. Both are Mercury — the signs where the two schemes disagree are Scorpio, Aquarius and Pisces.

PREFIX oxa: <https://cooljapan.tech/ns/oxiephemeris/astro#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX sign: <https://cooljapan.tech/ns/oxiephemeris/concept/sign/>
PREFIX element: <https://cooljapan.tech/ns/oxiephemeris/concept/element/>
PREFIX modality: <https://cooljapan.tech/ns/oxiephemeris/concept/modality/>

SELECT ?traditionalRuler ?modernRuler ?rulerLabel WHERE {
  sign:Gemini oxa:traditionalRuler ?traditionalRuler .
  sign:Gemini oxa:modernRuler ?modernRuler .
  ?modernRuler skos:prefLabel ?rulerLabel .
}

Run it

Signs that are both air and mutable

The element/modality grid: each of the twelve signs is one of four elements and one of three modalities, and each pair identifies exactly one sign.

PREFIX oxa: <https://cooljapan.tech/ns/oxiephemeris/astro#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX sign: <https://cooljapan.tech/ns/oxiephemeris/concept/sign/>
PREFIX element: <https://cooljapan.tech/ns/oxiephemeris/concept/element/>
PREFIX modality: <https://cooljapan.tech/ns/oxiephemeris/concept/modality/>

SELECT ?sign ?label WHERE {
  ?sign oxa:element element:air .
  ?sign oxa:modality modality:mutable .
  ?sign skos:prefLabel ?label .
}

Run it

Every sign, with its Wikidata link

The twelve signs and their skos:exactMatch into Wikidata. Only the ten planets and the twelve signs carry an alignment — aspects, elements and modalities have no stable Wikidata counterpart, so they are deliberately left unaligned.

PREFIX oxa: <https://cooljapan.tech/ns/oxiephemeris/astro#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX sign: <https://cooljapan.tech/ns/oxiephemeris/concept/sign/>
PREFIX element: <https://cooljapan.tech/ns/oxiephemeris/concept/element/>
PREFIX modality: <https://cooljapan.tech/ns/oxiephemeris/concept/modality/>

SELECT ?sign ?label ?wikidata WHERE {
  ?sign a oxa:ZodiacSign .
  ?sign skos:prefLabel ?label .
  ?sign skos:exactMatch ?wikidata .
}
ORDER BY ?sign

Run it

Everything the graph says about Leo

A DESCRIBE: every triple whose subject is the concept for Leo.

PREFIX oxa: <https://cooljapan.tech/ns/oxiephemeris/astro#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX sign: <https://cooljapan.tech/ns/oxiephemeris/concept/sign/>
PREFIX element: <https://cooljapan.tech/ns/oxiephemeris/concept/element/>
PREFIX modality: <https://cooljapan.tech/ns/oxiephemeris/concept/modality/>

DESCRIBE sign:Leo

Run it

The planets, labelled in Japanese

The ten classical/modern planets with their Japanese preferred label.

PREFIX oxa: <https://cooljapan.tech/ns/oxiephemeris/astro#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX sign: <https://cooljapan.tech/ns/oxiephemeris/concept/sign/>
PREFIX element: <https://cooljapan.tech/ns/oxiephemeris/concept/element/>
PREFIX modality: <https://cooljapan.tech/ns/oxiephemeris/concept/modality/>

SELECT ?planet ?ja WHERE {
  ?planet a oxa:Planet .
  ?planet skos:prefLabel ?ja .
  FILTER(lang(?ja) = "ja")
}
ORDER BY ?planet

Run it

Rulership as its own little graph (CONSTRUCT)

Rewrites traditional rulership into a graph of `oxa:rules` statements, one per sign.

PREFIX oxa: <https://cooljapan.tech/ns/oxiephemeris/astro#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX sign: <https://cooljapan.tech/ns/oxiephemeris/concept/sign/>
PREFIX element: <https://cooljapan.tech/ns/oxiephemeris/concept/element/>
PREFIX modality: <https://cooljapan.tech/ns/oxiephemeris/concept/modality/>

CONSTRUCT { ?planet oxa:rules ?sign }
WHERE {
  ?sign oxa:traditionalRuler ?planet .
}

Run it

Colophon

The graph is the same canonical dataset that backs the dereferenceable resources under cooljapan.tech/ns/oxiephemeris, generated by oxieph vocab. Queries are answered by oxirs-wasm compiled to WebAssembly. Apache-2.0.