-
Notifications
You must be signed in to change notification settings - Fork 13
/
index.js
57 lines (47 loc) · 2.15 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
"use strict";
/**
* RDF
*
* Implement a mash-up of the RDF Interfaces API, the RDF API, and first and foremost whatever makes sense for Node.js
*/
var api = exports;
api.RDFNode = require('./lib/RDFNode.js').RDFNode;
api.Term = api.RDFNode;
api.NamedNode = require('./lib/RDFNode.js').NamedNode;
api.BlankNode = require('./lib/RDFNode.js').BlankNode;
api.Literal = require('./lib/RDFNode.js').Literal;
api.Variable = require('./lib/RDFNode.js').Variable;
api.Profile = require('./lib/Profile.js').Profile;
api.TermMap = require('./lib/Profile.js').TermMap;
api.PrefixMap = require('./lib/Profile.js').PrefixMap;
api.RDFEnvironment = require('./lib/RDFEnvironment.js').RDFEnvironment;
api.BlankNodeMap = require('./lib/BlankNodeMap.js').BlankNodeMap;
api.TurtleParser = require('./lib/TurtleParser.js').Turtle;
api.Graph = require('./lib/Graph.js').Graph;
api.Triple = require('./lib/RDFNode.js').Triple;
api.TriplePattern = require('./lib/RDFNode.js').TriplePattern;
api.ResultSet = require("./lib/ResultSet.js").ResultSet;
api.DefaultGraph = require('./lib/RDFNode.js').DefaultGraph;
api.Dataset = require('./lib/Dataset.js').Dataset;
api.Quad = require('./lib/RDFNode.js').Quad;
// DataFactory support
api.DataFactory = require('./lib/DataFactory.js').DataFactory;
api.factory = require('./lib/environment').factory;
// api.namedNode = require('./lib/DataFactory.js').namedNode;
// api.blankNode = require('./lib/DataFactory.js').blankNode;
// api.literal = require('./lib/DataFactory.js').literal;
// api.variable = require('./lib/DataFactory.js').variable;
// api.defaultGraph = require('./lib/DataFactory.js').defaultGraph;
// api.triple = require('./lib/DataFactory.js').triple;
// api.quad = require('./lib/DataFactory.js').quad;
api.environment = require('./lib/environment').environment;
api.setBuiltins = require('./lib/Builtins').setBuiltins;
api.unsetBuiltins = require('./lib/Builtins').unsetBuiltins;
api.builtins = require('./lib/Builtins');
api.parse = function(o, id){
return api.builtins.ref.call(o, id);
};
api.ns = require('./lib/ns.js').ns;
api.rdfns = require('./lib/ns.js').rdfns;
api.rdfsns = require('./lib/ns.js').rdfsns;
api.xsdns = require('./lib/ns.js').xsdns;