This is a SemApps-based semantic application
Jena Fuseki is a semantic triple store. It is where your app's data will be stored.
You need docker and docker-compose installed on your machine.
$ docker-compose up
Jena Fuseki is now available at the URL http://localhost:3030
Please start by creating a localData
dataset. This is where your triples will go.
$ npm run dev
Your instance of SemApps is available at http://localhost:3000
Post an ActivityStreams Note to /resources
LDP container:
POST /resources HTTP/1.1
Host: localhost:3000
Content-Type: application/ld+json
Accept: */*
Content-Length: 97
{
"@context": "https://www.w3.org/ns/activitystreams",
"type": "Note",
"name": "Hello World"
}
Retrieve the /resources
LDP container:
GET /resources HTTP/1.1
Host: localhost:3000
Accept: application/ld+json
You should get this result:
{
"@context": {
"ldp": "http://www.w3.org/ns/ldp#",
"as": "https://www.w3.org/ns/activitystreams#"
},
"@id": "http://localhost:3000/resources",
"@type": [
"ldp:Container",
"ldp:BasicContainer"
],
"ldp:contains": [
{
"@id": "http://localhost:3000/resources/db78b000",
"@type": "as:Note",
"as:name": "Hello World"
}
]
}
- SemApps website: https://semapps.org/
- SemApps github: https://github.com/assemblee-virtuelle/semapps
npm run dev
: Start development mode (with hot-reload & REPL)npm run start
: Start production mode