-
Notifications
You must be signed in to change notification settings - Fork 68
Output RDF/JS terms #80
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
Merged
RubenVerborgh
merged 46 commits into
RubenVerborgh:master
from
AtomGraph:partial-73-fix
Jul 31, 2019
Merged
Changes from 45 commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
f6090a0
Added dependency on N3
namedgraph 24d0e65
Added TestDataFactory which imitates the pre-RDF/JS behavior to avoid…
namedgraph 55d9d52
Added createLangLiteral() in JISON for language literals
namedgraph 867d9d5
Refactored TestDataFactory.literal() to differentiate between lang ta…
namedgraph b02b90e
Removed unused XSD constants
namedgraph 31a0c27
Removed quotes from typed literal output
namedgraph 06348fb
TestDataFactory.literal() quotes xsd:integer values because so does S…
namedgraph d9b7a9f
Added n3 1.x as dependency
namedgraph 4cd7986
Added package-lock.json file
namedgraph 882e73f
Removed duplicate declaration of n3 dependency
namedgraph 2cd5b06
String literals in JISON are handled using createTypedLiteral() as well
namedgraph 76999c6
Fix string parsing.
RubenVerborgh 2699f0e
Set specific N3.js version.
RubenVerborgh c431f2d
Fix space.
RubenVerborgh dcf5483
Simplify true/false case.
RubenVerborgh 44cc174
Fix bug with json representation of VALUES
simonvbrae d115ec6
Change parser tests to work using the N3 DataFactory
simonvbrae e2c6cff
Fix assert that wasn't updated
simonvbrae 43b6218
Fix bug with RDF type url not getting output as a NamedNode
simonvbrae 80555a1
Move comparing function to test-setup.js
simonvbrae 5c2e6be
Fix a parser bug related to typedLiterals
simonvbrae 8535802
Fix bug related to VALUES in query
simonvbrae 11a30a8
Fix a bug causing namedNodes to get parsed as strings
simonvbrae f253fc0
Fix RDF_ constants
simonvbrae 9b3f8c8
Change generator so tests succeed again
simonvbrae 07a1637
Migrate from to expect from jest and add custom matcher
simonvbrae 62f763f
Add BlankNode name prefixes support
simonvbrae a99aa97
Drop Node 4 support.
RubenVerborgh 96105b7
Refrase comment for clarification
simonvbrae 14bbeb6
Add e_ prefix only if not present
simonvbrae 9d207e4
Add comment
simonvbrae 28ed2a8
Code cleanup & refactoring
simonvbrae c976ace
Replace termToString calls that had Variable as only input
simonvbrae 89082d5
Update tests
simonvbrae f510a38
Refactor so only string input to toEntity is '*'
simonvbrae e02b294
Refactor toEntity to manually to termToString work
simonvbrae ea36aa7
Remove rdf-string from dependencies
simonvbrae 78f0ea3
Replace isString with a more strict test where possible
simonvbrae 42e274b
Move expect to devDependencies
simonvbrae 791ee6d
Use regex instead of substr to remove prefix
simonvbrae 219eec7
Make matcher more strict
simonvbrae 0028d28
Add Wildcard to parser
simonvbrae 0c00589
Adjust generator to expect Wildcard
simonvbrae bca26f4
PR review changes
simonvbrae 54f83f6
Add value property so users dont have to deal with undefined there
simonvbrae fa2f7a7
Code cleanup for PR
simonvbrae File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
language: node_js | ||
node_js: | ||
- "4" | ||
- "6" | ||
- "8" | ||
- "10" | ||
- "12" | ||
- "lts/*" | ||
- "node" | ||
|
||
before_script: | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
var Term = require('n3').DataFactory.internal.Term; | ||
|
||
// Wildcard constructor | ||
class Wildcard extends Term { | ||
constructor() { | ||
super(''); | ||
return WILDCARD || this; | ||
} | ||
|
||
get termType() { | ||
return 'Wildcard'; | ||
} | ||
|
||
equals(other) { | ||
return other && (this.termType === other.termType); | ||
} | ||
} | ||
|
||
Object.defineProperty(Wildcard.prototype, 'value', { | ||
simonvbrae marked this conversation as resolved.
Show resolved
Hide resolved
|
||
enumerable: true, | ||
value: '*', | ||
}); | ||
|
||
|
||
// Wildcard singleton | ||
var WILDCARD = new Wildcard(); | ||
|
||
module.exports.Wildcard = Wildcard; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.