Skip to content

0m1n0/jena_schema_validator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jena_schema_validator

Try to understand how RDF data structure verification works in Apache Jena.

Two possibilities are investigated in this project:

1. Data

  • data/data.ttl: sample data with 3 users (Tutankhamen, Leonardo da Vinci, Julius Ceasar) and 1 project (Tutankhamen has a project)
  • data/schema_shacl.ttl: schema defining data structure

2. Method

2.1. Fuseki (Ongoing)

Via server configuration according to Integration with Apache Jena Fuseki

2.2. Jena API

Java code is in src/Shacl_validate.java, based on an official example from GitHub

3. Results

3.1. Fuseki

Ongoing

3.2. Jena API

Successfully validated, the report is below:

Conforms

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

[ rdf:type     sh:ValidationReport ;
  sh:conforms  true
] .

Process finished with exit code 0

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages