Closed labra closed 11 years ago
We generate an EARL report, but I don't know if is correct or no. We have to change the prefixes, but an example of a report generated is in [1].
How do we show the report? Do we offer an option to show it at the end of the page or offer a URL to download?
[1] @prefix dc: http://purl.org/dc/terms/ . @prefix rdfs: http://www.w3.org/2000/01/rdf-schema# . @prefix earl: http://www.w3.org/ns/earl# . @prefix cnt: http://www.w3.org/2011/content# . @prefix foaf: http://xmlns.com/foaf/0.1/# . @prefix xsd: http://www.w3.org/2001/XMLSchema# . @prefix rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# . @prefix doap: http://usefulinc.com/ns/doap# . @prefix cex-earl: http://purl.org/weso/ontology/computex/earl-report# . @prefix ptr: http://www.w3.org/2009/pointers# .
cex-earl:ass11 a earl:Assertion ; rdf:ID "ass11" ; dc:description "Observation does not have value in mean"^^xsd:string ; earl:assertedBy cex-earl:WESO ; earl:result cex-earl:passed ; earl:subject cex-earl:fileContent ; earl:test http://www.w3.org/TR/2013/CR-vocab-data-cube-20130625/#wf .
cex-earl:ass5 a earl:Assertion ; rdf:ID "ass5" ; dc:description "Weighted Mean does not match"^^xsd:string ; earl:assertedBy cex-earl:WESO ; earl:result cex-earl:passed ; earl:subject cex-earl:fileContent ; earl:test http://www.w3.org/TR/2013/CR-vocab-data-cube-20130625/#wf .
cex-earl:passed a earl:TestResult ; rdf:ID "passed" ; dc:description "Passed test"@en ; earl:outcome earl:passed .
cex-earl:ass10 a earl:Assertion ; rdf:ID "ass10" ; dc:description "Observation does not have value in copy"^^xsd:string ; earl:assertedBy cex-earl:WESO ; earl:result cex-earl:passed ; earl:subject cex-earl:fileContent ; earl:test http://www.w3.org/TR/2013/CR-vocab-data-cube-20130625/#wf .
cex-earl:ass4 a earl:Assertion ; rdf:ID "ass4" ; dc:description "Ranking value does not match"^^xsd:string ; earl:assertedBy cex-earl:WESO ; earl:result cex-earl:passed ; earl:subject cex-earl:fileContent ; earl:test http://www.w3.org/TR/2013/CR-vocab-data-cube-20130625/#wf .
cex-earl:error1 a earl:TestResult ; rdf:ID "error1" ; dc:description "Adjusted value does not match"@en ; earl:outcome earl:failed .
http://www.w3.org/TR/2013/CR-vocab-data-cube-20130625/#wf a earl:TestRequirement ; dc:description "A set of integrity constraints that an instance of an RDF Data Cube should be conformed"@en ; dc:title "RDF Data Cube Integrity constraints definition"@en .
http://computex.herokuapp.com a earl:Software ; dc:description "RDF Data Cube Validator Service, a free service that validates index data files and performs computations on them"@en ; dc:hasVersion "0.0.1"^^xsd:string ; dc:title "RDF Data Cube Validator"@en .
cex-earl:ass15 a earl:Assertion ; rdf:ID "ass15" ; dc:description "Observation does not have sheet-type"^^xsd:string ; earl:assertedBy cex-earl:WESO ; earl:result cex-earl:passed ; earl:subject cex-earl:fileContent ; earl:test http://www.w3.org/TR/2013/CR-vocab-data-cube-20130625/#wf .
cex-earl:ass3 a earl:Assertion ; rdf:ID "ass3" ; dc:description "Observation does not have value"^^xsd:string ; earl:assertedBy cex-earl:WESO ; earl:result cex-earl:passed ; earl:subject cex-earl:fileContent ; earl:test http://www.w3.org/TR/2013/CR-vocab-data-cube-20130625/#wf .
cex-earl:ass9 a earl:Assertion ; rdf:ID "ass9" ; dc:description "Copy value does not match"^^xsd:string ; earl:assertedBy cex-earl:WESO ; earl:result cex-earl:passed ; earl:subject cex-earl:fileContent ; earl:test http://www.w3.org/TR/2013/CR-vocab-data-cube-20130625/#wf .
cex-earl:ass14 a earl:Assertion ; rdf:ID "ass14" ; dc:description "Normalized value does not match computed z-score"^^xsd:string ; earl:assertedBy cex-earl:WESO ; earl:result cex-earl:passed ; earl:subject cex-earl:fileContent ; earl:test http://www.w3.org/TR/2013/CR-vocab-data-cube-20130625/#wf .
cex-earl:ass2 a earl:Assertion ; rdf:ID "ass2" ; dc:description "Observation has two different values"^^xsd:string ; earl:assertedBy cex-earl:WESO ; earl:result cex-earl:passed ; earl:subject cex-earl:fileContent ; earl:test http://www.w3.org/TR/2013/CR-vocab-data-cube-20130625/#wf .
cex-earl:ass8 a earl:Assertion ; rdf:ID "ass8" ; dc:description "Average growth value does not match"^^xsd:string ; earl:assertedBy cex-earl:WESO ; earl:result cex-earl:passed ; earl:subject cex-earl:fileContent ; earl:test http://www.w3.org/TR/2013/CR-vocab-data-cube-20130625/#wf .
cex-earl:ass13 a earl:Assertion ; rdf:ID "ass13" ; dc:description "Observation with Status obsStatus-M (Missing) should not have value"^^xsd:string ; earl:assertedBy cex-earl:WESO ; earl:result cex-earl:passed ; earl:subject cex-earl:fileContent ; earl:test http://www.w3.org/TR/2013/CR-vocab-data-cube-20130625/#wf .
cex-earl:ass1 a earl:Assertion ; rdf:ID "ass1" ; dc:description "Source observation does not have value in adjusted computation"^^xsd:string ; earl:assertedBy cex-earl:WESO ; earl:result cex-earl:passed ; earl:subject cex-earl:fileContent ; earl:test http://www.w3.org/TR/2013/CR-vocab-data-cube-20130625/#wf .
cex-earl:ass7 a earl:Assertion ; rdf:ID "ass7" ; dc:description "Adjusted value does not match"^^xsd:string ; earl:assertedBy cex-earl:WESO ; earl:result cex-earl:error1 ; earl:subject cex-earl:fileContent ; earl:test http://www.w3.org/TR/2013/CR-vocab-data-cube-20130625/#wf .
cex-earl:fileContent a cnt:ContentAsText ; dc:date "2013-08-06"^^xsd:string ; dc:title "The file with RDF Data Cube and Statistical indexes with computations that have to be tested"@en ; cnt:characterEncoding "UTF-8"^^xsd:string ; cnt:chars "@prefix component: http://data.webfoundation.org/webindex/v2013/component/ .\r\n@prefix country: http://data.webfoundation.org/webindex/v2013/country/ .\r\n@prefix dataset: http://data.webfoundation.org/webindex/v2013/dataset/ .\r\n@prefix indicator: http://data.webfoundation.org/webindex/v2013/indicator/ .\r\n@prefix obs: http://data.webfoundation.org/webindex/v2013/observation/ .\r\n@prefix organization: http://data.webfoundation.org/webindex/v2013/organization/ .\r\n@prefix slice: http://data.webfoundation.org/webindex/v2013/slice/ .\r\n\r\n@prefix cex: http://purl.org/weso/ontology/computex# .\r\n@prefix dcterms: http://purl.org/dc/terms/ .\r\n@prefix geo: http://www.w3.org/2003/01/geo/wgs84_pos# .\r\n@prefix qb: http://purl.org/linked-data/cube# .\r\n@prefix owl: http://www.w3.org/2002/07/owl# .\r\n@prefix rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# .\r\n@prefix rdfs: http://www.w3.org/2000/01/rdf-schema# .\r\n@prefix sdmx-code: http://purl.org/linked-data/sdmx/2009/code# .\r\n@prefix sdmx-concept: http://purl.org/linked-data/sdmx/2009/concept# .\r\n@prefix skos: http://www.w3.org/2004/02/skos/core# .\r\n@prefix time: http://www.w3.org/2006/time# .\r\n@prefix wi-onto: http://data.webfoundation.org/webindex/ontology/ .\r\n@prefix wi-org: http://data.webfoundation.org/webindex/organization/ .\r\n@prefix wi-people: http://data.webfoundation.org/webindex/people/ .\r\n@prefix xsd: http://www.w3.org/2001/XMLSchema# .\r\n\r\nobs:A a qb:Observation ;\r\n\t cex:value 2 ;\r\n\t cex:indicator indicator:I .\r\n\r\nobs:A-D a qb:Observation ;\r\n\t\tcex:computation \r\n\t\t [ a cex:Adjust ;\r\n\t\t\t cex:observation obs:A ;\r\n\t\t\t cex:increment 8 ;\r\n\t\t\t] ; \r\n\t cex:value 11 ;\r\n\t .\r\n\r\n"^^xsd:string .
cex-earl:ass12 a earl:Assertion ; rdf:ID "ass12" ; dc:description "Mean value does not match"^^xsd:string ; earl:assertedBy cex-earl:WESO ; earl:result cex-earl:passed ; earl:subject cex-earl:fileContent ; earl:test http://www.w3.org/TR/2013/CR-vocab-data-cube-20130625/#wf .
cex-earl:ass6 a earl:Assertion ; rdf:ID "ass6" ; dc:description "Weighted value does not match"^^xsd:string ; earl:assertedBy cex-earl:WESO ; earl:result cex-earl:passed ; earl:subject cex-earl:fileContent ; earl:test http://www.w3.org/TR/2013/CR-vocab-data-cube-20130625/#wf .
cex-earl:WESO a foaf:Group ; dc:title "WESO & RDF Data Cube Validator"^^xsd:string ; earl:mainAssertor http://computex.herokuapp.com ; foaf:member [ a foaf:Person ; foaf:mbox mailto:castrofernandez@gmail.com ; foaf:name "Juan Castro Fernandez"^^xsd:string ] ; foaf:member [ a foaf:Person ; foaf:mbox mailto:alejandro.montes@gmail.com ; foaf:name "Alejandro Montes Garcia"^^xsd:string ] ; foaf:member [ a foaf:Person ; foaf:mbox mailto:cesar.luis@weso.es ; foaf:name "Cesar Luis Alvargonzalez"^^xsd:string ] ; foaf:member [ a foaf:Person ; foaf:mbox mailto:ignacio.fuertes@weso.es ; foaf:name "Ignacio Fuertes Bernardo"^^xsd:string ] ; foaf:member [ a foaf:Person ; foaf:mbox mailto:chema.ar@gmail.com ; foaf:name "Jose Maria Alvarez Rodriguez"^^xsd:string ] ; foaf:member [ a foaf:Person ; foaf:mbox mailto:jelabra@gmail.com ; foaf:name "Jose Emilio Labra Gayo"^^xsd:string ] .
I think the best think would be the next 3 steps:
1.- Generate the report as is (supposing that it is correct) and convert from RDF to HTML so it looks nice. If this step is difficult, you can just generate independently RDF and HTML...
2.- Once you have HTML and RDF views, you could return one or the other depending on content negotiation...the accept http header
2.- And finally, from the HTML page, a link to download the RDF report would be great!
Best regards, Labra
On Tue, Aug 6, 2013 at 11:37 AM, ifbyol notifications@github.com wrote:
We generate an EARL report, but I don't know if is correct or no. We have to change the prefixes, but an example of a report generated is in [1].
How do we show the report? Do we offer an option to show it at the end of the page or offer a URL to download?
[1] @prefix https://github.com/prefix dc: http://purl.org/dc/terms/ . @prefix https://github.com/prefix rdfs: http://www.w3.org/2000/01/rdf-schema# . @prefix https://github.com/prefix earl: http://www.w3.org/ns/earl# . @prefix https://github.com/prefix cnt: http://www.w3.org/2011/content# . @prefix https://github.com/prefix foaf: http://xmlns.com/foaf/0.1/# . @prefix https://github.com/prefix xsd: http://www.w3.org/2001/XMLSchema#. @prefix https://github.com/prefix rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# . @prefix https://github.com/prefix doap: http://usefulinc.com/ns/doap# . @prefix https://github.com/prefix cex-earl: http://purl.org/weso/ontology/computex/earl-report# . @prefix https://github.com/prefix ptr: http://www.w3.org/2009/pointers#.
cex-earl:ass11 a earl:Assertion ; rdf:ID "ass11" ; dc:description "Observation does not have value in mean"^^xsd:string ; earl:assertedBy cex-earl:WESO ; earl:result cex-earl:passed ; earl:subject cex-earl:fileContent ; earl:test http://www.w3.org/TR/2013/CR-vocab-data-cube-20130625/#wf .
cex-earl:ass5 a earl:Assertion ; rdf:ID "ass5" ; dc:description "Weighted Mean does not match"^^xsd:string ; earl:assertedBy cex-earl:WESO ; earl:result cex-earl:passed ; earl:subject cex-earl:fileContent ; earl:test http://www.w3.org/TR/2013/CR-vocab-data-cube-20130625/#wf .
cex-earl:passed a earl:TestResult ; rdf:ID "passed" ; dc:description "Passed test"@en ; earl:outcome earl:passed .
cex-earl:ass10 a earl:Assertion ; rdf:ID "ass10" ; dc:description "Observation does not have value in copy"^^xsd:string ; earl:assertedBy cex-earl:WESO ; earl:result cex-earl:passed ; earl:subject cex-earl:fileContent ; earl:test http://www.w3.org/TR/2013/CR-vocab-data-cube-20130625/#wf .
cex-earl:ass4 a earl:Assertion ; rdf:ID "ass4" ; dc:description "Ranking value does not match"^^xsd:string ; earl:assertedBy cex-earl:WESO ; earl:result cex-earl:passed ; earl:subject cex-earl:fileContent ; earl:test http://www.w3.org/TR/2013/CR-vocab-data-cube-20130625/#wf .
cex-earl:error1 a earl:TestResult ; rdf:ID "error1" ; dc:description "Adjusted value does not match"@en ; earl:outcome earl:failed .
http://www.w3.org/TR/2013/CR-vocab-data-cube-20130625/#wf a earl:TestRequirement ; dc:description "A set of integrity constraints that an instance of an RDF Data Cube should be conformed"@en ; dc:title "RDF Data Cube Integrity constraints definition"@en .
http://computex.herokuapp.com a earl:Software ; dc:description "RDF Data Cube Validator Service, a free service that validates index data files and performs computations on them"@en ; dc:hasVersion "0.0.1"^^xsd:string ; dc:title "RDF Data Cube Validator"@en .
cex-earl:ass15 a earl:Assertion ; rdf:ID "ass15" ; dc:description "Observation does not have sheet-type"^^xsd:string ; earl:assertedBy cex-earl:WESO ; earl:result cex-earl:passed ; earl:subject cex-earl:fileContent ; earl:test http://www.w3.org/TR/2013/CR-vocab-data-cube-20130625/#wf .
cex-earl:ass3 a earl:Assertion ; rdf:ID "ass3" ; dc:description "Observation does not have value"^^xsd:string ; earl:assertedBy cex-earl:WESO ; earl:result cex-earl:passed ; earl:subject cex-earl:fileContent ; earl:test http://www.w3.org/TR/2013/CR-vocab-data-cube-20130625/#wf .
cex-earl:ass9 a earl:Assertion ; rdf:ID "ass9" ; dc:description "Copy value does not match"^^xsd:string ; earl:assertedBy cex-earl:WESO ; earl:result cex-earl:passed ; earl:subject cex-earl:fileContent ; earl:test http://www.w3.org/TR/2013/CR-vocab-data-cube-20130625/#wf .
cex-earl:ass14 a earl:Assertion ; rdf:ID "ass14" ; dc:description "Normalized value does not match computed z-score"^^xsd:string ; earl:assertedBy cex-earl:WESO ; earl:result cex-earl:passed ; earl:subject cex-earl:fileContent ; earl:test http://www.w3.org/TR/2013/CR-vocab-data-cube-20130625/#wf .
cex-earl:ass2 a earl:Assertion ; rdf:ID "ass2" ; dc:description "Observation has two different values"^^xsd:string ; earl:assertedBy cex-earl:WESO ; earl:result cex-earl:passed ; earl:subject cex-earl:fileContent ; earl:test http://www.w3.org/TR/2013/CR-vocab-data-cube-20130625/#wf .
cex-earl:ass8 a earl:Assertion ; rdf:ID "ass8" ; dc:description "Average growth value does not match"^^xsd:string ; earl:assertedBy cex-earl:WESO ; earl:result cex-earl:passed ; earl:subject cex-earl:fileContent ; earl:test http://www.w3.org/TR/2013/CR-vocab-data-cube-20130625/#wf .
cex-earl:ass13 a earl:Assertion ; rdf:ID "ass13" ; dc:description "Observation with Status obsStatus-M (Missing) should not have value"^^xsd:string ; earl:assertedBy cex-earl:WESO ; earl:result cex-earl:passed ; earl:subject cex-earl:fileContent ; earl:test http://www.w3.org/TR/2013/CR-vocab-data-cube-20130625/#wf .
cex-earl:ass1 a earl:Assertion ; rdf:ID "ass1" ; dc:description "Source observation does not have value in adjusted computation"^^xsd:string ; earl:assertedBy cex-earl:WESO ; earl:result cex-earl:passed ; earl:subject cex-earl:fileContent ; earl:test http://www.w3.org/TR/2013/CR-vocab-data-cube-20130625/#wf .
cex-earl:ass7 a earl:Assertion ; rdf:ID "ass7" ; dc:description "Adjusted value does not match"^^xsd:string ; earl:assertedBy cex-earl:WESO ; earl:result cex-earl:error1 ; earl:subject cex-earl:fileContent ; earl:test http://www.w3.org/TR/2013/CR-vocab-data-cube-20130625/#wf .
cex-earl:fileContent a cnt:ContentAsText ; dc:date "2013-08-06"^^xsd:string ; dc:title "The file with RDF Data Cube and Statistical indexes with computations that have to be tested"@en ; cnt:characterEncoding "UTF-8"^^xsd:string ; cnt:chars "@prefix component: http://data.webfoundation.org/webindex/v2013/component/ .\r\n@prefixcountry: http://data.webfoundation.org/webindex/v2013/country/ .\r\n@prefixdataset: http://data.webfoundation.org/webindex/v2013/dataset/ .\r\n@prefixindicator: http://data.webfoundation.org/webindex/v2013/indicator/ .\r\n@prefix obs: http://data.webfoundation.org/webindex/v2013/observation/ .\r\n@prefixorganization: http://data.webfoundation.org/webindex/v2013/organization/ .\r\n@prefixslice: http://data.webfoundation.org/webindex/v2013/slice/http://data.webfoundation.org/webindex/%20v2013/slice/.\r\n\r\n@prefixcex: http://purl.org/weso/ontology/computex# .\r\n@prefix dcterms: http://purl.org/dc/terms/ .\r\n@prefix geo: http://www.w3.org/2003/01/geo/wgs84_pos# .\r\n@prefix qb: http://purl.org/linked-data/cube# .\r\n@prefix owl: http://www.w3.org/2002/07/owl# .\r\n@prefix rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# .\r\n@prefix rdfs: http://www.w3.org/2000/01/rdf-schema# .\r\n@prefix sdmx-code: http://purl.org/linked-data/sdmx/2009/code# .\r\n@prefix sdmx-concept: http://purl.org/linked-data/sdmx/2009/concept#http://purl.org/%20linked-data/sdmx/2009/concept#.\r\n@prefixskos: http://www.w3.org/2004/02/skos/core# .\r\n@prefix time: http://www.w3.org/2006/time# .\r\n@prefix wi-onto: http://data.webfoundation.org/webindex/ontology/ .\r\n@prefix wi-org: http://data.webfoundation.org/webindex/organization/ .\r\n@prefixwi-people: http://data.webfoundation.org/webindex/people/ .\r\n@prefix xsd: http://www.w3.org/2001/XMLSchema# .\r\n\r\nobs:A a qb:Observation ;\r\n\t cex:value 2 ;\r\n\t cex:indicator indicator:I .\r\n\r\nobs:A-D a qb:Observation ;\r\n\t\tcex:computation \r\n\t\t [ a cex:Adjust ;\r\n\t\t\t cex:observat ion obs:A ;\r\n\t\t\t cex:increment 8 ;\r\n\t\t\t] ; \r\n\t cex:value 11 ;\r\n\t .\r\n\r\n"^^xsd:string .
cex-earl:ass12 a earl:Assertion ; rdf:ID "ass12" ; dc:description "Mean value does not match"^^xsd:string ; earl:assertedBy cex-earl:WESO ; earl:result cex-earl:passed ; earl:subject cex-earl:fileContent ; earl:test http://www.w3.org/TR/2013/CR-vocab-data-cube-20130625/#wf .
cex-earl:ass6 a earl:Assertion ; rdf:ID "ass6" ; dc:description "Weighted value does not match"^^xsd:string ; earl:assertedBy cex-earl:WESO ; earl:result cex-earl:passed ; earl:subject cex-earl:fileContent ; earl:test http://www.w3.org/TR/2013/CR-vocab-data-cube-20130625/#wf .
cex-earl:WESO a foaf:Group ; dc:title "WESO & RDF Data Cube Validator"^^xsd:string ; earl:mainAssertor http://computex.herokuapp.com ; foaf:member [ a foaf:Person ; foaf:mbox castrofernandez@gmail.com ; foaf:name "Juan Castro Fernandez"^^xsd:string ] ; foaf:member [ a foaf:Person ; foaf:mbox alejandro.montes@gmail.com ; foaf:name "Alejandro Montes Garcia"^^xsd:string ] ; foaf:member [ a foaf:Person ; foaf:mbox cesar.luis@weso.es ; foaf:name "Cesar Luis Alvargonzalez"^^xsd:string ] ; foaf:member [ a foaf:Person ; foaf:mbox ignacio.fuertes@weso.es ; foaf:name "Ignacio Fuertes Bernardo"^^xsd:string ] ; foaf:member [ a foaf:Person ; foaf:mbox chema.ar@gmail.com ; foaf:name "Jose Maria Alvarez Rodriguez"^^xsd:string ] ; foaf:member [ a foaf:Person ; foaf:mbox jelabra@gmail.com ; foaf:name "Jose Emilio Labra Gayo"^^xsd:string ] .
Reply to this email directly or view it on GitHubhttps://github.com/weso/computex/issues/5#issuecomment-22167892 .
Saludos, Labra
Generate a EARL (http://www.w3.org/TR/EARL10-Schema/) report of the tests that pass and the tests that don't pass.
Notice that the CONSTRUCT queries that return errors are compatible with EARL.