Global.Church Developer Portal
Global.Church API

GC-Core Ontology

Endpoint:https://api.global.church

Execute SPARQL query (GET)

GET
https://api.global.church
/v0/sparql

Executes a SPARQL query against the GC-Core knowledge graph using the SPARQL 1.1 Protocol GET form. Prefer POST for queries longer than approximately 2 KB to stay under URL length limits.

Execute SPARQL query (GET)query Parameters

  • querystring · required

    URL-encoded SPARQL query string.

  • default-graph-uristring[] · style: form · explode: true

    Optional default graph IRI(s). Repeat the parameter to supply multiple values.

  • named-graph-uristring[] · style: form · explode: true

    Optional named graph IRI(s). Repeat the parameter to supply multiple values.

Execute SPARQL query (GET)Headers

  • Authorizationstring · required

    The Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.

  • Acceptstring · enum

    Desired response format for SPARQL results.

    Enum values:
    application/sparql-results+json
    application/sparql-results+xml
    text/csv
    text/turtle

Execute SPARQL query (GET)Responses

SPARQL results

  • headobject
  • resultsobject

Execute SPARQL query

POST
https://api.global.church
/v0/sparql

Executes a SPARQL query against the GC-Core knowledge graph. Send the query as the request body with Content-Type: application/sparql-query. Recommended for any query that may exceed URL length limits.

Execute SPARQL queryHeaders

  • Authorizationstring · required

    The Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.

  • Acceptstring · enum

    Desired response format for SPARQL results.

    Enum values:
    application/sparql-results+json
    application/sparql-results+xml
    text/csv
    text/turtle

Execute SPARQL queryRequest Body

string

Execute SPARQL queryResponses

SPARQL results

  • headobject
  • resultsobject

CORS preflight for SPARQL

OPTIONS
https://api.global.church
/v0/sparql

CORS preflight for SPARQLResponses

No content

No data returned

Ingest RDF triples

POST
https://api.global.church
/v0/ingest

Inserts RDF triples into the GC-Core ontology repository in GraphDB.

Ingest RDF triplesHeaders

  • Authorizationstring · required

    The Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.

Ingest RDF triplesRequest Body

string

Ingest RDF triplesResponses

Triples ingested successfully

No data returned

CORS preflight for ingest

OPTIONS
https://api.global.church
/v0/ingest

CORS preflight for ingestResponses

No content

No data returned

GC-Core health check

GET
https://api.global.church
/v0/health

Health check for the GC-Core ontology repository. Returns repository status and triple count. No authentication required.

GC-Core health checkResponses

Repository is healthy

  • statusstring · required
  • tripleCountinteger · required

CORS preflight for health

OPTIONS
https://api.global.church
/v0/health

CORS preflight for healthResponses

No content

No data returned