Skip to content

Commit 9196c33

Browse files
committed
Added information about IRI
1 parent c910e95 commit 9196c33

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
title: GraphQL with RDF URI/IRI
3+
nextjs:
4+
metadata:
5+
title: GraphQL with RDF URI/IRI
6+
keywords: GraphQL, RDF, URI, IRI, semantic web
7+
description: Using GraphQL with RDF and URI/IRI fields with TerminusDB
8+
openGraph:
9+
images: https://assets.terminusdb.com/docs/technical-documentation-terminuscms-og.png
10+
alternates:
11+
canonical: https://terminusdb.org/docs/graphql-query-reference/
12+
media: []
13+
---
14+
15+
GraphQL is a data-oriented language with queries composed of queries, arguments and fields.
16+
17+
TerminusDB on the other hand is an RDF Knowledge Graph database with classes and properties, and with IRIs (URIs) as identifiers to connect JSON documents, JSON subdocuments and managing database IDs.
18+
19+
The TerminusDB GraphQL endpoint enables a data-informed ability to process typed RDF knowledge graphs with IRIs as identifiers, using GraphQL. This enables a fantastic interoperability between the worlds of graphs and traditional databases.
20+
21+
This means that id:s will not have the prefixed shorthand IRIs that are seen in the regular document interface of TerminusDB, but the fully qualified IRIs that uses the `@base` prefix.
22+
23+
For instance, a document might be retrieved by supplying the id as a variable in the following way, expecting the full IRI:
24+
25+
```graphql
26+
query Person(id:$id){
27+
name
28+
}
29+
```
30+
31+
The same sometimes unexpected results is also present in the WOQL queries, where the full IRI is sometimes not shown. Read more about prefixed IRI and RDF contexts to learn more about how to work with this.

src/lib/navigation.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,10 @@ export const navigation: Navigation[] = [
227227
title: 'GraphQL Back Links',
228228
href: '/docs/back-links-in-graphql',
229229
},
230+
{
231+
title: 'GraphQL IDs and RDF IRIs',
232+
href: '/docs/graphql-with-rdf-iri',
233+
},
230234
],
231235
},
232236
{

0 commit comments

Comments
 (0)