Skip to content

Commit 434a979

Browse files
committed
Merge pull request #15 from transcranial/master
n-triple data import tool
2 parents 6458585 + 93b8447 commit 434a979

7 files changed

Lines changed: 317 additions & 7 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,5 @@ docs
1818
.DS_Store
1919
coverage/
2020
bower_components
21+
22+
db/

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ var db = levelgraphN3(levelgraph("yourdb"));
6565

6666
### Importing n3 files
6767

68+
In code:
69+
6870
```js
6971
var fs = require("fs");
7072

@@ -76,6 +78,21 @@ stream.on("finish", function() {
7678
});
7779
```
7880

81+
Alternatively, you can run the import CLI tool by running `npm install`, then:
82+
83+
```
84+
./import.js path/to/n3/file(s)
85+
```
86+
87+
with the following optional flags:
88+
89+
`-o` or `--output` followed by the desired DB path. If not specified, path will be at `./db`.
90+
91+
`-q` or `--quiet` will silence status updates during the import process. Otherwise, progress information is displayed.
92+
93+
File extensions must be `.n3` or `.nt`. Additionally, there is glob support, so for example `*.nt` will import all the matching n-triple files.
94+
95+
7996
### Get and Put
8097

8198
Storing an N3 file in the database is extremey easy:

import.js

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
#!/usr/bin/env node
2+
3+
var levelgraph = require('levelgraph')
4+
, levelgraphN3 = require('./')
5+
, fs = require('fs')
6+
, path = require('path')
7+
, mkdirp = require('mkdirp')
8+
, progressStream = require('progress-stream')
9+
, eos = require('end-of-stream');
10+
11+
var cli = require('cli')
12+
.enable('glob');
13+
14+
var options = cli.parse({
15+
output: ['o', 'Specify output folder', 'path', './db'],
16+
quiet: ['q', 'Do not show progress information']
17+
});
18+
19+
// create db output folder
20+
try {
21+
22+
var dbPath, dbCreate;
23+
24+
dbPath = path.resolve(options.output);
25+
26+
if (path.extname(dbPath) !== '') {
27+
console.log('Error: bad output folder specified.')
28+
process.exit(0);
29+
}
30+
31+
dbCreate = mkdirp.sync(dbPath);
32+
if (!dbCreate) {
33+
if (!options.quiet) console.log('\nExisting LevelGraph database at: ' + dbPath);
34+
} else {
35+
if (!options.quiet) console.log('\nLevelGraph database created at: ' + dbPath);
36+
}
37+
38+
// initialize levelgraph-n3
39+
var db = levelgraphN3(levelgraph(dbPath));
40+
41+
} catch (err) {
42+
console.error(err);
43+
process.exit(1);
44+
}
45+
46+
47+
try {
48+
49+
// importing files
50+
var inputfiles = cli.args.slice(0);
51+
52+
if (inputfiles.length === 0) {
53+
console.log('\nNo input file(s) specified.');
54+
process.exit(0);
55+
} else {
56+
if(!options.quiet) console.log('\nNumber of files to be imported: ' + inputfiles.length.toString());
57+
}
58+
59+
inputfiles.forEach(function (filepath) {
60+
61+
// normalize and resolve given file path
62+
var n3file = path.resolve(filepath);
63+
64+
// must be .nt or .n3 file
65+
if (path.extname(n3file) !== '.nt' && path.extname(n3file) !== 'n3') {
66+
console.log('Invalid file. Must be .nt or n3 file.');
67+
} else {
68+
69+
if (!options.quiet) console.log('\nImporting RDF N-triple file: ' + n3file);
70+
71+
var fileStats = fs.statSync(n3file);
72+
var progstr = progressStream({
73+
length: fileStats.size,
74+
time: 1000
75+
}).on('progress', function (progress) {
76+
if(!options.quiet) {
77+
console.log('\n');
78+
console.log(progress);
79+
}
80+
});
81+
82+
var stream = fs.createReadStream(n3file)
83+
.pipe(progstr)
84+
.pipe(db.n3.putStream());
85+
86+
eos(stream, function (err) {
87+
if (err) return console.log('\nError in streaming ' + path.basename(n3file) + ' encountered.');
88+
if (!options.quiet) console.log('\n' + path.basename(n3file) + ' imported to levelgraph-n3 database at: ' + dbPath);
89+
});
90+
91+
}
92+
93+
});
94+
95+
} catch (err) {
96+
console.error(err);
97+
process.exit(1);
98+
}

package.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,14 @@
2929
"author": "Matteo Collina <hello@matteocollina.com>",
3030
"license": "MIT",
3131
"dependencies": {
32-
"n3": "~0.3.4",
33-
"readable-stream": ">= 1.1.13 < 2.0.0",
34-
"concat-stream": "~1.4.6"
32+
"cli": "^0.6.5",
33+
"concat-stream": "~1.4.6",
34+
"end-of-stream": "^1.1.0",
35+
"glob": "^5.0.3",
36+
"mkdirp": "^0.5.0",
37+
"n3": "^0.4.2",
38+
"progress-stream": "^1.0.1",
39+
"readable-stream": ">= 1.1.13 < 2.0.0"
3540
},
3641
"peerDependencies": {
3742
"levelgraph": "~>= 0.10 < 0.11"

test/fixtures/dbpedia_sample.nt

Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
<http://dbpedia.org/resource/Aristotle> <http://xmlns.com/foaf/0.1/name> "Aristotle"@en .
2+
<http://dbpedia.org/resource/Aristotle> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
3+
<http://dbpedia.org/resource/Aristotle> <http://purl.org/dc/elements/1.1/description> "Greek philosopher"@en .
4+
<http://dbpedia.org/resource/Aristotle> <http://dbpedia.org/ontology/birthDate> "-0384"^^<http://www.w3.org/2001/XMLSchema#gYear> .
5+
<http://dbpedia.org/resource/Aristotle> <http://dbpedia.org/ontology/birthPlace> <http://dbpedia.org/resource/Stagira_(ancient_city)> .
6+
<http://dbpedia.org/resource/Aristotle> <http://dbpedia.org/ontology/deathDate> "-0322"^^<http://www.w3.org/2001/XMLSchema#gYear> .
7+
<http://dbpedia.org/resource/Aristotle> <http://dbpedia.org/ontology/deathPlace> <http://dbpedia.org/resource/Chalcis> .
8+
<http://dbpedia.org/resource/Abraham_Lincoln> <http://xmlns.com/foaf/0.1/name> "Abraham Lincoln"@en .
9+
<http://dbpedia.org/resource/Abraham_Lincoln> <http://xmlns.com/foaf/0.1/surname> "Lincoln"@en .
10+
<http://dbpedia.org/resource/Abraham_Lincoln> <http://xmlns.com/foaf/0.1/givenName> "Abraham"@en .
11+
<http://dbpedia.org/resource/Abraham_Lincoln> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
12+
<http://dbpedia.org/resource/Abraham_Lincoln> <http://purl.org/dc/elements/1.1/description> "16th President of the United States"@en .
13+
<http://dbpedia.org/resource/Abraham_Lincoln> <http://dbpedia.org/ontology/birthDate> "1809-02-12"^^<http://www.w3.org/2001/XMLSchema#date> .
14+
<http://dbpedia.org/resource/Abraham_Lincoln> <http://dbpedia.org/ontology/birthPlace> <http://dbpedia.org/resource/Hardin_County,_Kentucky> .
15+
<http://dbpedia.org/resource/Abraham_Lincoln> <http://dbpedia.org/ontology/deathDate> "1865-04-15"^^<http://www.w3.org/2001/XMLSchema#date> .
16+
<http://dbpedia.org/resource/Alain_Connes> <http://xmlns.com/foaf/0.1/name> "Alain Connes"@en .
17+
<http://dbpedia.org/resource/Alain_Connes> <http://xmlns.com/foaf/0.1/surname> "Connes"@en .
18+
<http://dbpedia.org/resource/Alain_Connes> <http://xmlns.com/foaf/0.1/givenName> "Alain"@en .
19+
<http://dbpedia.org/resource/Alain_Connes> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
20+
<http://dbpedia.org/resource/Alain_Connes> <http://purl.org/dc/elements/1.1/description> "Mathematician"@en .
21+
<http://dbpedia.org/resource/Alain_Connes> <http://dbpedia.org/ontology/birthDate> "1947-04-01"^^<http://www.w3.org/2001/XMLSchema#date> .
22+
<http://dbpedia.org/resource/Alain_Connes> <http://dbpedia.org/ontology/birthPlace> <http://dbpedia.org/resource/Draguignan> .
23+
<http://dbpedia.org/resource/Allan_Dwan> <http://xmlns.com/foaf/0.1/name> "Allan Dwan"@en .
24+
<http://dbpedia.org/resource/Allan_Dwan> <http://xmlns.com/foaf/0.1/surname> "Dwan"@en .
25+
<http://dbpedia.org/resource/Allan_Dwan> <http://xmlns.com/foaf/0.1/givenName> "Allan"@en .
26+
<http://dbpedia.org/resource/Allan_Dwan> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
27+
<http://dbpedia.org/resource/Allan_Dwan> <http://purl.org/dc/elements/1.1/description> "Film director, film producer, screenwriter"@en .
28+
<http://dbpedia.org/resource/Allan_Dwan> <http://dbpedia.org/ontology/birthDate> "1885-04-03"^^<http://www.w3.org/2001/XMLSchema#date> .
29+
<http://dbpedia.org/resource/Allan_Dwan> <http://dbpedia.org/ontology/birthPlace> <http://dbpedia.org/resource/Toronto> .
30+
<http://dbpedia.org/resource/Allan_Dwan> <http://dbpedia.org/ontology/deathDate> "1981-12-28"^^<http://www.w3.org/2001/XMLSchema#date> .
31+
<http://dbpedia.org/resource/Ayn_Rand> <http://xmlns.com/foaf/0.1/name> "Ayn Rand"@en .
32+
<http://dbpedia.org/resource/Ayn_Rand> <http://xmlns.com/foaf/0.1/surname> "Rand"@en .
33+
<http://dbpedia.org/resource/Ayn_Rand> <http://xmlns.com/foaf/0.1/givenName> "Ayn"@en .
34+
<http://dbpedia.org/resource/Ayn_Rand> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
35+
<http://dbpedia.org/resource/Ayn_Rand> <http://purl.org/dc/elements/1.1/description> "novelist, philosopher, playwright, screenwriter"@en .
36+
<http://dbpedia.org/resource/Ayn_Rand> <http://dbpedia.org/ontology/birthDate> "1905-02-02"^^<http://www.w3.org/2001/XMLSchema#date> .
37+
<http://dbpedia.org/resource/Ayn_Rand> <http://dbpedia.org/ontology/birthPlace> <http://dbpedia.org/resource/Saint_Petersburg> .
38+
<http://dbpedia.org/resource/Ayn_Rand> <http://dbpedia.org/ontology/birthPlace> <http://dbpedia.org/resource/Russian_Empire> .
39+
<http://dbpedia.org/resource/Ayn_Rand> <http://dbpedia.org/ontology/deathDate> "1982-03-06"^^<http://www.w3.org/2001/XMLSchema#date> .
40+
<http://dbpedia.org/resource/Andre_Agassi> <http://xmlns.com/foaf/0.1/name> "Andre Agassi"@en .
41+
<http://dbpedia.org/resource/Andre_Agassi> <http://xmlns.com/foaf/0.1/surname> "Agassi"@en .
42+
<http://dbpedia.org/resource/Andre_Agassi> <http://xmlns.com/foaf/0.1/givenName> "Andre"@en .
43+
<http://dbpedia.org/resource/Andre_Agassi> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
44+
<http://dbpedia.org/resource/Andre_Agassi> <http://purl.org/dc/elements/1.1/description> "American tennis player"@en .
45+
<http://dbpedia.org/resource/Andre_Agassi> <http://dbpedia.org/ontology/birthDate> "1970-04-29"^^<http://www.w3.org/2001/XMLSchema#date> .
46+
<http://dbpedia.org/resource/Andre_Agassi> <http://dbpedia.org/ontology/birthPlace> <http://dbpedia.org/resource/Las_Vegas_Valley> .
47+
<http://dbpedia.org/resource/Andre_Agassi> <http://dbpedia.org/ontology/birthPlace> <http://dbpedia.org/resource/Nevada> .
48+
<http://dbpedia.org/resource/Aldous_Huxley> <http://xmlns.com/foaf/0.1/name> "Aldous Huxley"@en .
49+
<http://dbpedia.org/resource/Aldous_Huxley> <http://xmlns.com/foaf/0.1/surname> "Huxley"@en .
50+
<http://dbpedia.org/resource/Aldous_Huxley> <http://xmlns.com/foaf/0.1/givenName> "Aldous"@en .
51+
<http://dbpedia.org/resource/Aldous_Huxley> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
52+
<http://dbpedia.org/resource/Aldous_Huxley> <http://purl.org/dc/elements/1.1/description> "Writer; author"@en .
53+
<http://dbpedia.org/resource/Aldous_Huxley> <http://dbpedia.org/ontology/birthDate> "1894-07-26"^^<http://www.w3.org/2001/XMLSchema#date> .
54+
<http://dbpedia.org/resource/Aldous_Huxley> <http://dbpedia.org/ontology/birthPlace> <http://dbpedia.org/resource/Surrey> .
55+
<http://dbpedia.org/resource/Aldous_Huxley> <http://dbpedia.org/ontology/deathDate> "1963-11-22"^^<http://www.w3.org/2001/XMLSchema#date> .
56+
<http://dbpedia.org/resource/Andrei_Tarkovsky> <http://xmlns.com/foaf/0.1/name> "Andrei Tarkovsky"@en .
57+
<http://dbpedia.org/resource/Andrei_Tarkovsky> <http://xmlns.com/foaf/0.1/surname> "Tarkovsky"@en .
58+
<http://dbpedia.org/resource/Andrei_Tarkovsky> <http://xmlns.com/foaf/0.1/givenName> "Andrei"@en .
59+
<http://dbpedia.org/resource/Andrei_Tarkovsky> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
60+
<http://dbpedia.org/resource/Andrei_Tarkovsky> <http://purl.org/dc/elements/1.1/description> "Film director"@en .
61+
<http://dbpedia.org/resource/Andrei_Tarkovsky> <http://dbpedia.org/ontology/birthDate> "1932-04-04"^^<http://www.w3.org/2001/XMLSchema#date> .
62+
<http://dbpedia.org/resource/Andrei_Tarkovsky> <http://dbpedia.org/ontology/birthPlace> <http://dbpedia.org/resource/Soviet_Union> .
63+
<http://dbpedia.org/resource/Andrei_Tarkovsky> <http://dbpedia.org/ontology/deathDate> "1986-12-29"^^<http://www.w3.org/2001/XMLSchema#date> .
64+
<http://dbpedia.org/resource/Arthur_Schopenhauer> <http://xmlns.com/foaf/0.1/name> "Arthur Schopenhauer"@en .
65+
<http://dbpedia.org/resource/Arthur_Schopenhauer> <http://xmlns.com/foaf/0.1/surname> "Schopenhauer"@en .
66+
<http://dbpedia.org/resource/Arthur_Schopenhauer> <http://xmlns.com/foaf/0.1/givenName> "Arthur"@en .
67+
<http://dbpedia.org/resource/Arthur_Schopenhauer> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
68+
<http://dbpedia.org/resource/Arthur_Schopenhauer> <http://purl.org/dc/elements/1.1/description> "German philosopher"@en .
69+
<http://dbpedia.org/resource/Arthur_Schopenhauer> <http://dbpedia.org/ontology/birthDate> "1788-02-22"^^<http://www.w3.org/2001/XMLSchema#date> .
70+
<http://dbpedia.org/resource/Arthur_Schopenhauer> <http://dbpedia.org/ontology/birthPlace> <http://dbpedia.org/resource/Sztutowo> .
71+
<http://dbpedia.org/resource/Arthur_Schopenhauer> <http://dbpedia.org/ontology/birthPlace> <http://dbpedia.org/resource/Kingdom_of_Prussia> .
72+
<http://dbpedia.org/resource/Arthur_Schopenhauer> <http://dbpedia.org/ontology/deathDate> "1860-09-21"^^<http://www.w3.org/2001/XMLSchema#date> .
73+
<http://dbpedia.org/resource/Arthur_Schopenhauer> <http://dbpedia.org/ontology/deathPlace> <http://dbpedia.org/resource/Frankfurt> .
74+
<http://dbpedia.org/resource/Arthur_Schopenhauer> <http://dbpedia.org/ontology/deathPlace> <http://dbpedia.org/resource/Germany> .
75+
<http://dbpedia.org/resource/Albert_Sidney_Johnston> <http://xmlns.com/foaf/0.1/name> "Albert Sidney Johnston"@en .
76+
<http://dbpedia.org/resource/Albert_Sidney_Johnston> <http://xmlns.com/foaf/0.1/surname> "Johnston"@en .
77+
<http://dbpedia.org/resource/Albert_Sidney_Johnston> <http://xmlns.com/foaf/0.1/givenName> "Albert Sidney"@en .
78+
<http://dbpedia.org/resource/Albert_Sidney_Johnston> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
79+
<http://dbpedia.org/resource/Albert_Sidney_Johnston> <http://purl.org/dc/elements/1.1/description> "Confederate Army general"@en .
80+
<http://dbpedia.org/resource/Albert_Sidney_Johnston> <http://dbpedia.org/ontology/birthDate> "1803-02-02"^^<http://www.w3.org/2001/XMLSchema#date> .
81+
<http://dbpedia.org/resource/Albert_Sidney_Johnston> <http://dbpedia.org/ontology/birthPlace> <http://dbpedia.org/resource/Washington,_Kentucky> .
82+
<http://dbpedia.org/resource/Albert_Sidney_Johnston> <http://dbpedia.org/ontology/deathDate> "1862-04-06"^^<http://www.w3.org/2001/XMLSchema#date> .
83+
<http://dbpedia.org/resource/Albert_Sidney_Johnston> <http://dbpedia.org/ontology/deathPlace> <http://dbpedia.org/resource/Hardin_County,_Tennessee> .
84+
<http://dbpedia.org/resource/Albert_Einstein> <http://xmlns.com/foaf/0.1/name> "Albert Einstein"@en .
85+
<http://dbpedia.org/resource/Albert_Einstein> <http://xmlns.com/foaf/0.1/surname> "Einstein"@en .
86+
<http://dbpedia.org/resource/Albert_Einstein> <http://xmlns.com/foaf/0.1/givenName> "Albert"@en .
87+
<http://dbpedia.org/resource/Albert_Einstein> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
88+
<http://dbpedia.org/resource/Albert_Einstein> <http://purl.org/dc/elements/1.1/description> "Physicist"@en .
89+
<http://dbpedia.org/resource/Albert_Einstein> <http://dbpedia.org/ontology/birthDate> "1879-03-14"^^<http://www.w3.org/2001/XMLSchema#date> .
90+
<http://dbpedia.org/resource/Albert_Einstein> <http://dbpedia.org/ontology/birthPlace> <http://dbpedia.org/resource/Ulm> .
91+
<http://dbpedia.org/resource/Albert_Einstein> <http://dbpedia.org/ontology/birthPlace> <http://dbpedia.org/resource/Baden-W%C3%BCrttemberg> .
92+
<http://dbpedia.org/resource/Albert_Einstein> <http://dbpedia.org/ontology/birthPlace> <http://dbpedia.org/resource/German_Empire> .
93+
<http://dbpedia.org/resource/Albert_Einstein> <http://dbpedia.org/ontology/deathDate> "1955-04-18"^^<http://www.w3.org/2001/XMLSchema#date> .
94+
<http://dbpedia.org/resource/Albert_Einstein> <http://dbpedia.org/ontology/deathPlace> <http://dbpedia.org/resource/Princeton,_New_Jersey> .
95+
<http://dbpedia.org/resource/Alfred_Korzybski> <http://xmlns.com/foaf/0.1/name> "Alfred Korzybski"@en .
96+
<http://dbpedia.org/resource/Alfred_Korzybski> <http://xmlns.com/foaf/0.1/surname> "Korzybski"@en .
97+
<http://dbpedia.org/resource/Alfred_Korzybski> <http://xmlns.com/foaf/0.1/givenName> "Alfred"@en .
98+
<http://dbpedia.org/resource/Alfred_Korzybski> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
99+
<http://dbpedia.org/resource/Alfred_Korzybski> <http://purl.org/dc/elements/1.1/description> "Polish scientist and philosopher"@en .
100+
<http://dbpedia.org/resource/Alfred_Korzybski> <http://dbpedia.org/ontology/birthDate> "1879-07-03"^^<http://www.w3.org/2001/XMLSchema#date> .
101+
<http://dbpedia.org/resource/Alfred_Korzybski> <http://dbpedia.org/ontology/birthPlace> <http://dbpedia.org/resource/Warsaw> .
102+
<http://dbpedia.org/resource/Alfred_Korzybski> <http://dbpedia.org/ontology/birthPlace> <http://dbpedia.org/resource/Vistula_Land> .
103+
<http://dbpedia.org/resource/Alfred_Korzybski> <http://dbpedia.org/ontology/birthPlace> <http://dbpedia.org/resource/Russian_Empire> .
104+
<http://dbpedia.org/resource/Alfred_Korzybski> <http://dbpedia.org/ontology/deathDate> "1950-03-01"^^<http://www.w3.org/2001/XMLSchema#date> .
105+
<http://dbpedia.org/resource/Alfred_Korzybski> <http://dbpedia.org/ontology/deathPlace> <http://dbpedia.org/resource/Lakeville,_Connecticut> .
106+
<http://dbpedia.org/resource/Alfred_Korzybski> <http://dbpedia.org/ontology/deathPlace> <http://dbpedia.org/resource/United_States> .
107+
<http://dbpedia.org/resource/Alexander_the_Great> <http://xmlns.com/foaf/0.1/name> "Alexander the Great"@en .
108+
<http://dbpedia.org/resource/Alexander_the_Great> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
109+
<http://dbpedia.org/resource/Alexander_the_Great> <http://purl.org/dc/elements/1.1/description> "Greek military commander"@en .
110+
<http://dbpedia.org/resource/Alexander_the_Great> <http://dbpedia.org/ontology/birthDate> "0356-07-20"^^<http://www.w3.org/2001/XMLSchema#date> .
111+
<http://dbpedia.org/resource/Alexander_the_Great> <http://dbpedia.org/ontology/birthPlace> <http://dbpedia.org/resource/Pella> .
112+
<http://dbpedia.org/resource/Alexander_the_Great> <http://dbpedia.org/ontology/birthPlace> <http://dbpedia.org/resource/Macedonia_(ancient_kingdom)> .
113+
<http://dbpedia.org/resource/Alexander_the_Great> <http://dbpedia.org/ontology/deathDate> "0323-06-10"^^<http://www.w3.org/2001/XMLSchema#date> .
114+
<http://dbpedia.org/resource/Alexander_the_Great> <http://dbpedia.org/ontology/deathPlace> <http://dbpedia.org/resource/Babylon> .
115+
<http://dbpedia.org/resource/Attila> <http://xmlns.com/foaf/0.1/name> "Attila the Hun"@en .
116+
<http://dbpedia.org/resource/Attila> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
117+
<http://dbpedia.org/resource/Attila> <http://purl.org/dc/elements/1.1/description> "Khan of the Huns from 434 until his death"@en .
118+
<http://dbpedia.org/resource/Attila> <http://dbpedia.org/ontology/birthDate> "0406"^^<http://www.w3.org/2001/XMLSchema#gYear> .
119+
<http://dbpedia.org/resource/Alfred_Nobel> <http://xmlns.com/foaf/0.1/name> "Alfred Bernhard Nobel"@en .
120+
<http://dbpedia.org/resource/Alfred_Nobel> <http://xmlns.com/foaf/0.1/surname> "Nobel"@en .
121+
<http://dbpedia.org/resource/Alfred_Nobel> <http://xmlns.com/foaf/0.1/givenName> "Alfred Bernhard"@en .
122+
<http://dbpedia.org/resource/Alfred_Nobel> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
123+
<http://dbpedia.org/resource/Alfred_Nobel> <http://purl.org/dc/elements/1.1/description> "Chemist, engineer and inventor of dynamite"@en .
124+
<http://dbpedia.org/resource/Alfred_Nobel> <http://dbpedia.org/ontology/birthDate> "1833-10-21"^^<http://www.w3.org/2001/XMLSchema#date> .
125+
<http://dbpedia.org/resource/Alfred_Nobel> <http://dbpedia.org/ontology/birthPlace> <http://dbpedia.org/resource/Stockholm> .
126+
<http://dbpedia.org/resource/Alfred_Nobel> <http://dbpedia.org/ontology/birthPlace> <http://dbpedia.org/resource/Sweden> .
127+
<http://dbpedia.org/resource/Alfred_Nobel> <http://dbpedia.org/ontology/deathDate> "1896-12-10"^^<http://www.w3.org/2001/XMLSchema#date> .
128+
<http://dbpedia.org/resource/Alfred_Nobel> <http://dbpedia.org/ontology/deathPlace> <http://dbpedia.org/resource/Sanremo> .
129+
<http://dbpedia.org/resource/Alfred_Nobel> <http://dbpedia.org/ontology/deathPlace> <http://dbpedia.org/resource/Italy> .
130+
<http://dbpedia.org/resource/Alfred_Hitchcock> <http://xmlns.com/foaf/0.1/name> "Alfred Joseph Hitchcock"@en .

0 commit comments

Comments
 (0)