diachron / quality

Dataset Quality Assessment (part of WP5 of the Diachron EU FP7 project)
MIT License
8 stars 4 forks source link

FileNotFoundException #64

Open aomelo opened 7 years ago

aomelo commented 7 years ago

I tried to run the examples and I got the following error message:

java.io.FileNotFoundException: /Users/jeremy/Desktop/270a-crawling/luzzucomms.log (No such file or directory)

It seems that the log file path is hard-coded somewhere, but I could not find the problem. Can anyone help me with that?

jerdeb commented 7 years ago

Which examples you are trying to execute? Log file paths are set in the Luzzu framework Luzzu/luzzu-communications/src/main/resources/log4j.xml

aomelo commented 7 years ago

I fixed the log path, but now I get the following error message when I run the example efo234.sh:

{ "Dataset": "/backup-local-home/andeoliv-adm/workspace-pydev/quality/examples/efo-2.34.rdf", "Outcome": "ERROR", "ErrorMessage": "The request caused an exception", "ErrorCode": "1495550940331" }

Processing request parameters. DatasetURI: {}; QualityReportRequired: {}; MetricsConfiguration: {}; BaseUri: {}; IsSPARQLEndPoint: {}

jerdeb commented 7 years ago

it seems that the shell file has missing API parameters. those examples were not updated with the new luzzu version. each call should have the following params: Dataset, QualityReportRequired, MetricsConfiguration, BaseUri, isSparql

jerdeb commented 7 years ago

By any chance, did you use assessment.sh or did you clone luzzu separately?

aomelo commented 7 years ago

I used assessment.sh, and the all the API parameters you mentioned are set in the call:

#!/bin/bash
var=$(pwd)
fileName="$var/efo-2.34.rdf"
curl --data "IsSparql=false&BaseUri=http://www.ebi.ac.uk/efo/&Dataset=$fileName&QualityReportRequired=false&MetricsConfiguration={\"@id\":\"_:f4216607408b1\",\"@type\":[\"http://purl.org/eis/vocab/lmi#MetricConfiguration\"],\"http://purl.org/eis/vocab/lmi#metric\":[{\"@value\":\"de.unibonn.iai.eis.diachron.ebi.DefinedOntologyAuthor\"},{\"@value\":\"de.unibonn.iai.eis.diachron.ebi.OBOFoundry\"},{\"@value\":\"de.unibonn.iai.eis.diachron.ebi.ObsoleteConceptsInOntology\"},{\"@value\":\"de.unibonn.iai.eis.diachron.ebi.POBODefinitionUsage\"},{\"@value\":\"de.unibonn.iai.eis.diachron.ebi.SynonymUsage\"},{\"@value\":\"de.unibonn.iai.eis.diachron.ebi.OntologyVersioningConciseness\"}]}" http://localhost:8080/Luzzu/compute_quality ;