Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move RDFa parser to jsonld-rdfa package. #341

Merged
merged 2 commits into from
Feb 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# jsonld ChangeLog

## 4.0.0 - tbd

### Removed
- **BREAKING**: RDFa parser moved to `jsonld-rdfa` package.

## 3.3.0 - 2021-01-21

### Changed
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
}
}