You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Andy Seaborne (Jira)" <ji...@apache.org> on 2021/08/20 15:45:00 UTC

[jira] [Resolved] (JENA-2144) shaclc serializer should output "nodeKind"

     [ https://issues.apache.org/jira/browse/JENA-2144?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andy Seaborne resolved JENA-2144.
---------------------------------
    Fix Version/s: Jena 4.2.0
         Assignee: Andy Seaborne
       Resolution: Fixed

Fixed bug but now prints long form for property shapes.

 

A solution to JENA-2145 that is sensitive to the printing state (property shape or node shape) is needed.

> shaclc serializer should output "nodeKind" 
> -------------------------------------------
>
>                 Key: JENA-2144
>                 URL: https://issues.apache.org/jira/browse/JENA-2144
>             Project: Apache Jena
>          Issue Type: Bug
>            Reporter: Vladimir Alexiev
>            Assignee: Andy Seaborne
>            Priority: Major
>             Fix For: Jena 4.2.0
>
>
> Trying the SHACLC parser and serializer on https://github.com/euBusinessGraph/eubg-data/blob/master/model/ebg-shapes.shaclc :
> {noformat}
> shacl p --out=c ebg-shapes.shaclc > a.shaclc
> shacl p --out=c a.shaclc
> Encountered " "IRI" "IRI "" at line 38, column 5.
> Was expecting one of:
>     "targetNode" ...
>     "targetObjectsOf" ...
>     "targetSubjectsOf" ...
>     "targetClass" ...
>     "deactivated" ...
>     "severity" ...
>     "message" ...
>     "class" ...
>     "datatype" ...
>     "nodeKind" ...
> {noformat}
> The reason is that it outputs eg
> {noformat}
> shape ebgsh:Company -> rov:RegisteredOrganization {
>     IRI .
> {noformat}
> but should output:
> {noformat}
> shape ebgsh:Company -> rov:RegisteredOrganization {
>     nodeKind=sh:IRI .
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)