Skip to content

Commit 11df16d

Browse files
author
Jim Amsden
committed
Merge remote-tracking branch 'linkeddata/master'
# Conflicts: # rdfparser.js
1 parent 07170d8 commit 11df16d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+46852
-39401
lines changed

.gitignore

-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,2 @@
11
parsers/*.js
2-
tests/*.js
32
node_modules
4-
npm-debug.log
5-
dist/rdflib-rdfa.js
6-
web_browserify.js

.travis.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
sudo: false
22
language: node_js
33
node_js:
4-
- "0.12"
4+
- "4.0"
5+
- "5.0"
56

Makefile

+23-50
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,31 @@
11
# rdflib.js Makefile
22

3-
R=util.js uri.js term.js rdfparser.js n3parser.js identity.js \
4-
patchParser.js query.js sparql.js update.js jsonparser.js serialize.js updatesVia.js web_browserify.js
3+
R=util.js uri.js term.js rdfparser.js n3parser.js identity.js parseRDFa.js \
4+
patchParser.js query.js sparql.js update.js jsonparser.js serialize.js \
5+
updatesVia.js web.js
56

6-
A=util.js uri.js term.js rdfparser.js n3parser.js identity.js \
7-
parseRDFa.js \
8-
patchParser.js query.js sparql.js update.js jsonparser.js serialize.js updatesVia.js web_browserify.js
9-
10-
targets=$(addprefix dist/, rdflib.js rdflib-rdfa.js)
11-
coffeejs=$(patsubst %.coffee,%.js,$(wildcard *.coffee))
7+
targets=$(addprefix dist/, rdflib-node.js)
8+
# coffeejs=$(patsubst %.coffee,%.js,$(wildcard *.coffee))
129

1310
PATH:=./node_modules/.bin:${PATH}
1411

15-
all: web_browserify.js dist $(targets)
12+
all: dist $(targets) dist/rdflib.js
13+
14+
size:
15+
wc $R
1616

17-
web_browserify.js: web.js
18-
browserify web.js -o web_browserify.js
17+
dist/rdflib.js: dist/rdflib-node.js
18+
browserify -r ./dist/rdflib-node.js:rdflib --exclude "xmlhttprequest" --standalone "\$$rdf" > dist/rdflib.js
1919

2020
dist:
2121
mkdir -p dist
2222

23-
alpha: dist/rdflib-alpha.js
24-
echo
25-
26-
dist/rdflib-alpha.js: $R module.js
27-
echo "(function(root, undef) {" > $@
28-
cat $R module.js >> $@
29-
date '+$$rdf.buildTime = "%Y-%m-%dT%H:%M:%S";' >> $@
30-
echo "})(this);" >> $@
31-
32-
dist/rdflib.js: $R module.js
23+
dist/rdflib-node.js: $R module.js
24+
# dist/rdflib.js: $R module.js
3325
echo "(function(root, undef) {" > $@
3426
cat $R module.js >> $@
3527
date '+$$rdf.buildTime = "%Y-%m-%dT%H:%M:%S";' >> $@
36-
echo "})(this);" >> $@
37-
38-
J=dist
39-
# X=jquery.uri.js jquery.xmlns.js
40-
41-
dist/rdflib-rdfa.js: $X $A module.js
42-
echo "(function(root, undef) {" > $@
43-
date '+$$rdf.buildTime = "%Y-%m-%dT%H:%M:%S";' >> $@
44-
cat $A module.js >> $@
45-
echo "})(this);" >> $@
46-
47-
# This URL rotted and we don't update this anymore 2015-02
48-
#jquery.uri.js:
49-
# wget http://rdfquery.googlecode.com/svn-history/trunk/jquery.uri.js -O $@
50-
#
51-
#jquery.xmlns.js:
52-
# wget http://rdfquery.googlecode.com/svn-history/trunk/jquery.xmlns.js -O $@
53-
54-
upstream: jquery.uri.js jquery.xmlns.js
28+
echo '})(this);' >> $@
5529

5630
.PHONY: detach gh-pages
5731

@@ -71,8 +45,8 @@ gh-pages: detach
7145
git checkout master
7246

7347
clean:
74-
rm -f $(targets) $(coffeejs)
75-
rm -f web_browserify.js
48+
rm -f $(targets)
49+
rm -f dist/rdflib.js
7650

7751
status:
7852
@pwd
@@ -84,17 +58,16 @@ writable:
8458

8559
# npm install -g coffee-script nodeunit
8660

87-
SRC=$(wildcard *.coffee */*.coffee)
88-
LIB=$(SRC:%.coffee=%.js)
61+
# SRC=$(wildcard *.coffee */*.coffee)
62+
# LIB=$(SRC:%.coffee=%.js)
8963

90-
%.js: %.coffee
91-
coffee -bp $< > $@
64+
# %.js: %.coffee
65+
# coffee -bp $< > $@
9266

93-
.PHONY: coffee
94-
coffee: $(LIB)
67+
# .PHONY: coffee
68+
# coffee: $(LIB)
9569

9670
.PHONY: test
97-
test: $(LIB)
71+
test: # $(LIB)
9872
@nodeunit tests/*.js
9973
make -C tests/serialize
100-

README.md

+21-18
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,52 @@
11
# rdflib.js
2-
2+
[![NPM Version](https://img.shields.io/npm/v/rdflib.svg?style=flat)](https://npm.im/rdflib)
33
[![Join the chat at https://gitter.im/linkeddata/rdflib.js](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/linkeddata/rdflib.js?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
44

5-
Javascript RDF library for browsers and NodeJS.
5+
Javascript RDF library for browsers and Node.js.
66

7-
- Reads and writes RDF/xml, turtle and N3.
7+
- Reads and writes RDF/xml, Turtle and N3.
88
- Read/Write Linked Data client, using WebDav or SPARQL/Update
9-
- Parses RDF/a. (rdflib-rdfa.js version only)
10-
- Local API for querying store
9+
- Parses RDF/a
10+
- Local API for querying a store
1111
- SPARQL queries (not full SPARQL)
12-
- Smushing of nodes from owl:sameAs, and owl:{f,inverseF}unctionProperty
12+
- Smushing of nodes from `owl:sameAs`, and `owl:{f,inverseF}unctionProperty`
1313
- Tracks provence of triples keeps metadata (in RDF) from HTTP accesses
1414

15-
## Install
15+
## Documentation
1616

17-
#### Browser
17+
See **[Tutorial for using rdflib.js](https://github.com/solid/solid-tutorial-rdflib.js)**
18+
for more information.
1819

19-
Install dependencies you may need to generate the js file.
20+
Possible out of date information is available from here:
21+
[http://dig.csail.mit.edu/2005/ajar/ajaw/Developer.html](http://dig.csail.mit.edu/2005/ajar/ajaw/Developer.html).
22+
23+
## Install
2024

2125
```bash
22-
$ npm install -g coffee-script nodeunit
26+
npm install
2327
```
2428

2529
Generate the dist directory
2630

2731
```bash
28-
$ npm install
32+
make all
2933
```
3034

31-
#### NodeJS
35+
#### Node.js
36+
37+
Make sure you have Node.js and Node Package Manager ([npm](https://npmjs.org/))
38+
installed.
3239

33-
Make sure you have NodeJS and Node Package Manager ([npm](https://npmjs.org/)) installed.
3440
```bash
3541
npm install --save rdflib
3642
```
3743

38-
## Documentation
39-
40-
Possible out of date information is available from here: [http://dig.csail.mit.edu/2005/ajar/ajaw/Developer.html](http://dig.csail.mit.edu/2005/ajar/ajaw/Developer.html).
41-
4244
## Contribute
4345

4446
#### Subdirectories
4547

46-
- `dist`, Run 'make' in this directory to generate dist in whch libraries are buit
48+
- `dist`, Run 'make' in this directory to generate dist in which libraries are
49+
built
4750
- `test`, Tests are here.
4851

4952
#### Dependencies

0 commit comments

Comments
 (0)