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 authored and dmitrizagidulin committed Feb 10, 2021
1 parent 980d20a commit 49fb0e2
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 @@ -166,6 +166,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 @@ -40,7 +40,6 @@ const IdentifierIssuer = util.IdentifierIssuer;
const JsonLdError = require('./JsonLdError');
const LRU = require('lru-cache');
const NQuads = require('./NQuads');
const Rdfa = require('./Rdfa');

const {expand: _expand} = require('./expand');
const {flatten: _flatten} = require('./flatten');
Expand Down Expand Up @@ -989,9 +988,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 @@ -35,8 +35,7 @@
"object.fromentries": "^2.0.2",
"rdf-canonize": "^2.0.1",
"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 @@ -86,8 +85,8 @@
},
"keywords": [
"JSON",
"Linked Data",
"JSON-LD",
"Linked Data",
"RDF",
"Semantic Web",
"jsonld"
Expand Down Expand Up @@ -124,7 +123,6 @@
"jsonld-request": false,
"request": false,
"url": false,
"util": false,
"xmldom": false
"util": false
}
}

0 comments on commit 49fb0e2

Please sign in to comment.