Skip to content

Latest commit

 

History

History

pg-schema-for-rdf

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

PG-Schema for RDF

This is an experiment that adds an "RDF-friendly" syntax to the PG-Schema proposal to explore possibilities for better aligment between RDF and Labeled Property Graphs (LPGs). The new PG-Schema expressions are translated to a combination of RDF Schema and SHACL, effectively allowing validation of RDF graphs. This experimentation provides better understanding of what RDF/LPG interoperability means, and thus supports Amazon Neptune's OneGraph project.

Once presented, material from Ora Lassila's talk at KGC 2024 (titled "Schema language for both RDF and LPGs") will be included here as well.

Installation

To play with PG-Schema for RDF, you need Python 3.10 (or newer), clone or fork the amazon-neptune-samples repository, and then:

cd pg-schema-for-rdf
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

See the file test/demo.py for an example of how the system translates PG-Schema expressions to SHACL.

License

See LICENSE for license and copyright information.