Skip to content

Commit

Permalink
Move RDFa parser to jsonld-rdfa package.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlehn committed Dec 6, 2019
1 parent afb0640 commit b1e21ac
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 149 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
- **BREAKING**: Remove deprecated `loadDocument` API and obsolete
`DocumentCache`.
- **BREAKING**: Remove deprecated support for parsing legacy dataset format.
- **BREAKING**: RDFa parser moved to `jsonld-rdfa` package.

## 1.8.1 - 2019-10-24

Expand Down
140 changes: 0 additions & 140 deletions lib/Rdfa.js

This file was deleted.

4 changes: 0 additions & 4 deletions lib/jsonld.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ const util = require('./util');
const IdentifierIssuer = util.IdentifierIssuer;
const JsonLdError = require('./JsonLdError');
const NQuads = require('./NQuads');
const Rdfa = require('./Rdfa');

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

// register the RDFa API RDF parser
jsonld.registerRDFParser('rdfa-api', Rdfa.parse);

/* URL API */
jsonld.url = require('./url');

Expand Down
8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@
"canonicalize": "^1.0.1",
"rdf-canonize": "^1.0.2",
"request": "^2.88.0",
"semver": "^6.3.0",
"xmldom": "0.1.19"
"semver": "^6.3.0"
},
"devDependencies": {
"@babel/cli": "^7.7.5",
Expand Down Expand Up @@ -84,8 +83,8 @@
},
"keywords": [
"JSON",
"Linked Data",
"JSON-LD",
"Linked Data",
"RDF",
"Semantic Web",
"jsonld"
Expand Down Expand Up @@ -120,7 +119,6 @@
"jsonld-request": false,
"request": false,
"url": false,
"util": false,
"xmldom": false
"util": false
}
}

0 comments on commit b1e21ac

Please sign in to comment.