Xsilence Connections is a knowledge graph app demo built using Staple API on top of MongoDB Atlas.
The live version of this demo is deployed at http://xsilence.repl.it.
The full documentiation of Staple API is available at http://staple-api.org.
- Go to https://repl.it/.
- Press + new repl to create a new Repl environment and choose Import From GitHub.
- Paste the URL of this repository and import it.
- Press the Run button and wait for the app to start at the automatically generated URL https://***--five-nine.repl.co.
The application exposes two graphical interfaces:
- the demo FE at https://***--five-nine.repl.co
- the Apollo playground of the underlying Staple API at https://***--five-nine.repl.co/graphql, where you can issue GraphQL queries to the remote MongoDB Atlas instance storing the application (knowledge graph) data, e.g.:
{
MusicGroup(filter: { _id: "http://www.xsilence.net/artiste-62.htm" }) {
_id
_type
name
description
sameAs
image
album {
_id
_type
name
image
average
format
producer {
_id
_type
name
}
}
event {
_id
_type
image
average
location {
_id
_type
name
containedInPlace {
_id
_type
name
}
}
}
relatedMusicGroups {
_id
_type
name
}
}
_CONTEXT {
_id
_type
MusicGroup
MusicAlbum
MusicEvent
Place
Organization
name
description
average
format
image
album
event
producer
byArtist
location
containedInPlace
relatedMusicGroups
}
}
I built this app after I read this article. I'm reusing exactly the same stack and app architecture Knowledge Graph App in 15min. Prototyping a simple knowledge graph application with JSONs, MongoDB and automatically generated GraphQL API, S. Klarman, 2020.