Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
NZ Artists turtle
node v8.17.0
version:
1.0.1
endpoint
share
tweet
This is a playground to test JavaScript. It runs a completely standard copy of Node.js on a virtual server created just for you. Every one of npm’s 300,000+ packages are pre-installed, so try it out:
const express = require('express') const app = express() app.use(require('cors')()); app.get('/', function (req, res) { res.setHeader('Content-Type', 'text/turtle'); res.send(` @prefix foaf: <http://xmlns.com/foaf/0.1/> . @prefix dbo: <http://dbpedia.org/ontology/> . @prefix tgn: <http://vocab.getty.edu/tgn/> . <https://findnzartists.org.nz/artist/9785/> foaf:name "Colin McCahon" ; foaf:familyName "McCahon" ; foaf:birthday "08-01"; dbo:birthPlace "Timaru" . <https://findnzartists.org.nz/artist/328/> foaf:name "Angus, Rita" ; foaf:familyName "Angus" ; foaf:birthday "03-12"; dbo:birthPlace "Hastings" . `) }) app.listen(3000, function () { console.log('Example app listening on port 3000!') }) process.env.RUNKIT_ENDPOINT_URL
Loading…
no comments
sign in
to comment