Skip to content

Commit b1e21ac

Browse files
committed
Move RDFa parser to jsonld-rdfa package.
1 parent afb0640 commit b1e21ac

File tree

4 files changed

+4
-149
lines changed

4 files changed

+4
-149
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
- **BREAKING**: Remove deprecated `loadDocument` API and obsolete
3535
`DocumentCache`.
3636
- **BREAKING**: Remove deprecated support for parsing legacy dataset format.
37+
- **BREAKING**: RDFa parser moved to `jsonld-rdfa` package.
3738

3839
## 1.8.1 - 2019-10-24
3940

lib/Rdfa.js

Lines changed: 0 additions & 140 deletions
This file was deleted.

lib/jsonld.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ const util = require('./util');
3838
const IdentifierIssuer = util.IdentifierIssuer;
3939
const JsonLdError = require('./JsonLdError');
4040
const NQuads = require('./NQuads');
41-
const Rdfa = require('./Rdfa');
4241

4342
const {expand: _expand} = require('./expand');
4443
const {flatten: _flatten} = require('./flatten');
@@ -950,9 +949,6 @@ jsonld.unregisterRDFParser = function(contentType) {
950949
jsonld.registerRDFParser('application/n-quads', NQuads.parse);
951950
jsonld.registerRDFParser('application/nquads', NQuads.parse);
952951

953-
// register the RDFa API RDF parser
954-
jsonld.registerRDFParser('rdfa-api', Rdfa.parse);
955-
956952
/* URL API */
957953
jsonld.url = require('./url');
958954

package.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@
3333
"canonicalize": "^1.0.1",
3434
"rdf-canonize": "^1.0.2",
3535
"request": "^2.88.0",
36-
"semver": "^6.3.0",
37-
"xmldom": "0.1.19"
36+
"semver": "^6.3.0"
3837
},
3938
"devDependencies": {
4039
"@babel/cli": "^7.7.5",
@@ -84,8 +83,8 @@
8483
},
8584
"keywords": [
8685
"JSON",
87-
"Linked Data",
8886
"JSON-LD",
87+
"Linked Data",
8988
"RDF",
9089
"Semantic Web",
9190
"jsonld"
@@ -120,7 +119,6 @@
120119
"jsonld-request": false,
121120
"request": false,
122121
"url": false,
123-
"util": false,
124-
"xmldom": false
122+
"util": false
125123
}
126124
}

0 commit comments

Comments
 (0)