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

Andy Seaborne updated JENA-1808:
--------------------------------
    Description: 
I'm new to Jena Fuseki and SHACL, so I thought I would use the example from 
section 1.4 of the W3C Shapes Constraint Language document to insure I had 
everything up and running correctly.  Unfortunately, when I upload the example 
graph and run their example shape graph, Fuseki indicates the data graph is 
validated:


{noformat}$ ./validate-data.sh 
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

[ a sh:ValidationReport ;
 sh:conforms true
] .

$
{noformat}
 

I expected a validation report similar to that contained in the recommendation 
indicating violations in the data graph.

I have attached the configuration file that I use to configure Fuseki for this 
test, along with the data and shape graph ttl files defining the graphs and the 
two shell scripts I use to upload and validate the graph.

The upload and test shell scripts are based on the curl examples from 
[https://jena.apache.org/documentation/shacl/]

When I change the name of the graph, I get a 404, so I expect the code is 
validating the expected graph.  I can also see the default graph displayed in 
the Fuseki viewer running locally at [http://localhost:8080/dataset.html] and 
the triples appear as indicanted in the attached file.

  was:
I'm new to Jena Fuseki and SHACL, so I thought I would use the example from 
section 1.4 of the W3C Shapes Constraint Language document to insure I had 
everything up and running correctly.  Unfortunately, when I upload the example 
graph and run their example shape graph, Fuseki indicates the data graph is 
validated:

{{}}
{quote}$ ./validate-data.sh 
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

[ a sh:ValidationReport ;
 sh:conforms true
] .

$
{quote}
 

I expected a validation report similar to that contained in the recommendation 
indicating violations in the data graph.

I have attached the configuration file that I use to configure Fuseki for this 
test, along with the data and shape graph ttl files defining the graphs and the 
two shell scripts I use to upload and validate the graph.

The upload and test shell scripts are based on the curl examples from 
[https://jena.apache.org/documentation/shacl/]

When I change the name of the graph, I get a 404, so I expect the code is 
validating the expected graph.  I can also see the default graph displayed in 
the Fuseki viewer running locally at [http://localhost:8080/dataset.html] and 
the triples appear as indicanted in the attached file.


> Incorrect validation returned when using the Fuseki SHACL processor
> -------------------------------------------------------------------
>
>                 Key: JENA-1808
>                 URL: https://issues.apache.org/jira/browse/JENA-1808
>             Project: Apache Jena
>          Issue Type: Bug
>          Components: Fuseki, SHACL
>    Affects Versions: Jena 3.13.1
>         Environment: macOS Catalina 10.15.2 (19C57)
> openjdk 13.0.1 2019-10-15
> OpenJDK Runtime Environment AdoptOpenJDK (build 13.0.1+9)
> OpenJDK 64-Bit Server VM AdoptOpenJDK (build 13.0.1+9, mixed mode, sharing)
>            Reporter: Steve Roggenkamp
>            Priority: Major
>         Attachments: upload-data.sh, validate-data.sh, 
> w3-shacl-example01-data.ttl, w3-shacl-example01-shapes.ttl, 
> w3-shacl-example01.ttl
>
>
> I'm new to Jena Fuseki and SHACL, so I thought I would use the example from 
> section 1.4 of the W3C Shapes Constraint Language document to insure I had 
> everything up and running correctly.  Unfortunately, when I upload the 
> example graph and run their example shape graph, Fuseki indicates the data 
> graph is validated:
> {noformat}$ ./validate-data.sh 
> @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
> @prefix sh: <http://www.w3.org/ns/shacl#> .
> @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
> @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
> [ a sh:ValidationReport ;
>  sh:conforms true
> ] .
> $
> {noformat}
>  
> I expected a validation report similar to that contained in the 
> recommendation indicating violations in the data graph.
> I have attached the configuration file that I use to configure Fuseki for 
> this test, along with the data and shape graph ttl files defining the graphs 
> and the two shell scripts I use to upload and validate the graph.
> The upload and test shell scripts are based on the curl examples from 
> [https://jena.apache.org/documentation/shacl/]
> When I change the name of the graph, I get a 404, so I expect the code is 
> validating the expected graph.  I can also see the default graph displayed in 
> the Fuseki viewer running locally at [http://localhost:8080/dataset.html] and 
> the triples appear as indicanted in the attached file.



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

Reply via email to