-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor to enable configuration of index and prefixes
- Loading branch information
Benjamin Forster
committed
Feb 15, 2018
1 parent
c9de920
commit 1e4ba05
Showing
7 changed files
with
224 additions
and
117 deletions.
There are no files selected for viewing
This file contains 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 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 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,25 @@ | ||
const HEXSTORE_INDEXES = { | ||
spo: ['subject', 'predicate', 'object'], | ||
pos: ['predicate', 'object', 'subject'], | ||
osp: ['object', 'subject', 'predicate'], | ||
sop: ['subject', 'object', 'predicate'], // [optional] | ||
pso: ['predicate', 'subject', 'object'], // [optional] | ||
ops: ['object', 'predicate', 'subject'] // [optional] | ||
} | ||
const HEXSTORE_INDEXES_REDUCED = { | ||
spo: HEXSTORE_INDEXES.spo, | ||
pos: HEXSTORE_INDEXES.pos, | ||
osp: HEXSTORE_INDEXES.osp | ||
} | ||
const PREFIX_KEY = '@prefix/' | ||
const DEFAULT_PREFIXES = { | ||
_: 'hg://', | ||
foaf: 'http://xmlns.com/foaf/0.1/' | ||
} | ||
|
||
module.exports = { | ||
PREFIX_KEY, | ||
DEFAULT_PREFIXES, | ||
HEXSTORE_INDEXES, | ||
HEXSTORE_INDEXES_REDUCED | ||
} |
This file contains 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 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
Oops, something went wrong.