dice-group / deer

RDF Dataset Enrichment Framework
https://dice-group.github.io/deer/
GNU Affero General Public License v3.0
10 stars 7 forks source link

[webUI] Unrelated properties are shown #18

Closed kvndrsslr closed 3 years ago

kvndrsslr commented 3 years ago
issue1

For some operators, unrelated properties are shown. For example, FileModelWriter declares just two properties fromUri and fromPath but in the example above multiple unrelated properties are shown.

pskLana commented 3 years ago

Same as https://github.com/dice-group/deer/issues/20

kvndrsslr commented 3 years ago

This is not fixed. FileModelReader is not supposed to have a selector property, however, this happens:

image

Then, with the above configuration, the following RDF is generated:

[Log] @prefix example: <urn:example:demo/>. (main.83535f34.chunk.js, line 1)
@prefix foaf: <http://xmlns.com/foaf/0.1/>.
@prefix dbpedia: <http://dbpedia.org/resource/>.
@prefix deer: <https://w3id.org/deer/>.
@prefix fcage: <https://w3id.org/fcage/>.
@prefix geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>.
@prefix owl: <http://www.w3.org/2002/07/owl#>.
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
@prefix xsd: <http://www.w3.org/2001/XMLSchema#>.

example:test2 a deer:FileModelWriter;
    fcage:hasInput ([
  fcage:fromNode example:test;
  fcage:fromPort "0"^^xsd:integer
]);
    deer:outputFile "wurm.ttl".
example:test a deer:FileModelReader;
    deer:selector [ deer:fromPath <hello.ttl> ].

which is also incorrect (why is deer:fromPath wrapped in a deer:selector here? This is not part of the SHACL shape. I suspect your list parsing code has some bugs.)

pskLana commented 3 years ago

For me, everything is okay. Seems like you use an old version. image The following rdf is generated for me:

@prefix example: <urn:example:demo/>.
@prefix foaf: <http://xmlns.com/foaf/0.1/>.
@prefix dbpedia: <http://dbpedia.org/resource/>.
@prefix deer: <https://w3id.org/deer/>.
@prefix fcage: <https://w3id.org/fcage/>.
@prefix geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>.
@prefix owl: <http://www.w3.org/2002/07/owl#>.
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
@prefix xsd: <http://www.w3.org/2001/XMLSchema#>.

example:test a deer:FileModelReader;
    deer:fromPath "hello.ttl".
kvndrsslr commented 3 years ago

I tried again with the following:

In Terminal:

git checkout feature/webGUI
git pull
cd deer-web-ui
npm install
npm run build
cd ..
mvn clean package shade:shade -Dmaven.test.skip=true
java -jar deer-cli/target/deer-cli-2.3.2-SNAPSHOT.jar -s

In Browser:

Result:

image

Please triple check this. Do you have any local changes that aren't committed?

kvndrsslr commented 3 years ago

Fixed