Skip to content

Instantly share code, notes, and snippets.

DBPedia
PREFIX dbo: <http://dbpedia.org/ontology/>
SELECT ?person WHERE {
?person dbpedia2:influences <http://dbpedia.org/resource/Isaac_Newton> .
{ ?person a <http://dbpedia.org/ontology/Person> . }
}
ORDER BY ?name
<html>
<head>
<script src="raphael.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
Raphael.fn.connection = function (obj1, obj2, line, bg) {
if (obj1.line && obj1.from && obj1.to) {
line = obj1;
obj1 = line.from;
obj2 = line.to;
http://collectionsonline.nmsi.ac.uk/grabimg.php?kv=107931 - painting; portrait
http://collectionsonline.nmsi.ac.uk/grabimg.php?kv=109011 - Isaac Newton’s reflecting telescope (replica)
http://collectionsonline.nmsi.ac.uk/grabimg.php?kv=107901 - print; portrait
http://collectionsonline.nmsi.ac.uk/grabimg.php?kv=126567 - medal
http://collectionsonline.nmsi.ac.uk/grabimg.php?kv=55342 - Metal spectacles with small thick oval lenses, as suggested
http://collectionsonline.nmsi.ac.uk/grabimg.php?kv=107052 - Newton's furnace, 1696-1727.
http://collectionsonline.nmsi.ac.uk/grabimg.php?kv=126565 - Royal Society Medal
http://collectionsonline.nmsi.ac.uk/grabimg.php?kv=122835 - Engraving: The paternal house of Sir Isaac Newton ... born 2
var express = require('express');
var app = express.createServer();
app.configure(function(){
app.use(express.methodOverride());
app.use(express.bodyDecoder());
app.use(express.logger());
});
var express = require('express');
var ArticleProvider = require('./articleprovider-memory').ArticleProvider;
var app = express.createServer();
app.configure(function(){
app.use(express.methodOverride());
app.use(express.bodyDecoder());
app.use(express.logger());
html
head
title= title
body
#wrapper
!= body
h1= title
#articles
- each article in articles
div.article
div.created_at= article.created_at
div.title= article.title
div.body= article.body
var express = require('express');
var app = express.createServer();
app.configure(function(){
app.set('view engine', 'jade');
app.set('views', __dirname + '/views');
app.use(express.methodOverride());
app.use(express.bodyDecoder());
app.use(express.logger());
html
head
title= title
link(rel: 'stylesheet', href: '/style.css' )
body
#wrapper
!= body
h1= title
form( method= 'post' )
div
div
span Title :
input(type='text', name= 'title', id= 'editArticleTitle' )
div
span Body :
textarea( name= 'body', rows= 20, id= 'editArticleBody' )
div#editArticleSubmit