Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

human readable report error #20

Open
jessevdam opened this issue Jun 23, 2017 · 1 comment
Open

human readable report error #20

jessevdam opened this issue Jun 23, 2017 · 1 comment

Comments

@jessevdam
Copy link

When doing shema

REFIX : <http://hl7.org/fhir/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

start = @<ObservationShape>

<http://a.example/ObservationShape> {
 :prop1 xsd:string;
 :prop1 ["test"]
}

with data

PREFIX : <http://hl7.org/fhir/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

<http://a.example/Obs1>
 :prop1 "test","vala2","vala3";
 :prop2 "valb1","valb2" .

it gives error

rendering results...
error parsing input data:

errsToSimple@https://rawgit.com/shexSpec/shex.js/master/browser/shex-browserify.js:4154:13
errsToSimple/<@https://rawgit.com/shexSpec/shex.js/master/browser/shex-browserify.js:4113:22
errsToSimple@https://rawgit.com/shexSpec/shex.js/master/browser/shex-browserify.js:4112:75
renderEntry@https://rawgit.com/shexSpec/shex.js/master/doc/shex-simple.js:508:36
validate@https://rawgit.com/shexSpec/shex.js/master/doc/shex-simple.js:447:7
prepareInterface@https://rawgit.com/shexSpec/shex.js/master/doc/shex-simple.js:903:5
@https://rawgit.com/shexSpec/shex.js/master/doc/shex-simple.js:1161:1

It gives some results if you select 'appinfo' option

https://rawgit.com/shexSpec/shex.js/master/doc/shex-simple.html?interface=human&schema=PREFIX%20%3A%20%3Chttp%3A%2F%2Fhl7.org%2Ffhir%2F%3E%0APREFIX%20xsd%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%23%3E%0A%0Astart%20%3D%20%40%3CObservationShape%3E%0A%0A%3Chttp%3A%2F%2Fa.example%2FObservationShape%3E%20%7B%0A%20%3Aprop1%20xsd%3Astring%3B%0A%20%3Aprop1%20%5B%22test%22%5D%0A%7D%0A%0A&data=PREFIX%20%3A%20%3Chttp%3A%2F%2Fhl7.org%2Ffhir%2F%3E%0APREFIX%20xsd%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%23%3E%0A%0A%3Chttp%3A%2F%2Fa.example%2FObs1%3E%0A%20%3Aprop1%20%22test%22%2C%22vala2%22%2C%22vala3%22%3B%0A%20%3Aprop2%20%22valb1%22%2C%22valb2%22%20.%0A%0A%0A&shape-map=%3Chttp%3A%2F%2Fa.example%2FObs1%3E%40%3Chttp%3A%2F%2Fa.example%2FObservationShape%3E

@ericprud
Copy link
Contributor

I believe this is fixed. The error message no longer hurts the eyes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants