-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
48 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,52 @@ | ||
# TODO | ||
# Usage | ||
# FactualConsensusFinder | ||
|
||
Prefusion([FlexiFusion](https://svn.aksw.org/papers/2019/ISWC_FlexiFusion/public.pdf)) based viewer for possible inconsensus in Wikipedia, Wikidata and "Your Data". | ||
|
||
## Usage | ||
|
||
> Prerequisites [node.js & npm](https://nodejs.org/en/) | ||
(e.g Debian/Ubunutu `sudo apt-get install nodejs`) | ||
|
||
Install project dependencies with | ||
|
||
``` | ||
npm install | ||
``` | ||
|
||
Change application configuration in `config.js` | ||
|
||
``` | ||
module.exports = { | ||
expose_port: "9005", | ||
mongo_url: "mongodb://readonly:[email protected]:8989/prefusion", | ||
database_name: "prefusion", | ||
collection: "provenance", | ||
id_management: "https://global.dbpedia.org/same-thing/lookup/?uri=", | ||
default_subject: "https://global.dbpedia.org/id/4KKSo", | ||
default_predicate: "http://www.w3.org/2000/01/rdf-schema#label" | ||
//DEPRECATED | ||
preference: "wikidata.dbpedia.org,en.dbpedia.org,de.dbpedia.org,fr.dbpedia.org,nl.dbpedia.org,sv.dbpedia.org", | ||
}; | ||
``` | ||
|
||
Run | ||
|
||
``` | ||
bin/www.js | ||
``` | ||
|
||
and then visit [9005](http://localhost:9005) | ||
|
||
|
||
## Routing | ||
|
||
| Route | Params | Description | | ||
|---|---|---| | ||
| / | ?s=IRI <br> ?p=IRI | Lookup subject predicate pair | | ||
| /raw | ?s=IRI <br> ?p=IRI | Same as / but returns JSON | | ||
| /label | ?s=IRI | Get rdfs:label for Resource | | ||
|