Closed VladimirAlexiev closed 9 months ago
I could not reproduce a problem with that file and still get the same output as in the test case. I also don't recognize recent changes to our code base or the SHACLC parser code base online. The example you pasted is incomplete, unfortunately, e.g. I wonder what happened to the sh:maxLength triple.
It's an open source project, so my suggestion is you try walk through the code with a debugger, e.g. breakpointing at SHACLCReader.parsePropertyOr to see where it produces what looks like detached bnodes.
@HolgerKnublauch thanks for the input! Can you point to the code you use to do the conversion?
The example you pasted is incomplete, unfortunately, e.g. I wonder what happened to the sh:maxLength triple
Yes, it's missing, and sh:datatype xsd:integer
is missing, the sh:or
is missing and its list is disconnected.
Here's another symptom: this SHACLC
PREFIX : <http://example.org/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
shapeClass :Project {
:hasEvent @:ProjectOpenEvent [1..1].
}
shapeClass :ProjectOpenEvent {
:hasDate xsd:date [1..1].
}
produces this SHACL where the second shape is missing:
:ProjectOpenEvent a rdfs:Class , sh:NodeShape ;
sh:property [] .
:Project a rdfs:Class , sh:NodeShape ;
sh:property [ sh:maxCount 1 ;
sh:minCount 1 ;
sh:node :ProjectOpenEvent ;
sh:path :hasEvent
] .
@yasengmarinov can you spend some time to debug this?
Closing old issue
Hi @HolgerKnublauch !
@yasengmarinov has written a command-line convertor (that we plan to release shortly)
I'm trying it on https://github.com/w3c/data-shapes/blob/gh-pages/shacl-compact-syntax/tests/valid/complex1.shaclc and we get different results.
Yours:
Ours:
Are we making some mistake? Given #91 and comparing to the tests above, it seems there is some regression in the latest version 1.3.2 ?