jsonschema2shacl

A Python program that creates SHACL shapes from JSON Schema

https://github.com/citiususc/jsonschema2shacl

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (4.4%) to scientific vocabulary

Keywords

jsonschema knowledge-graph python shacl
Last synced: 6 months ago · JSON representation ·

Repository

A Python program that creates SHACL shapes from JSON Schema

Basic Info
  • Host: GitHub
  • Owner: citiususc
  • License: apache-2.0
  • Language: Python
  • Default Branch: main
  • Homepage:
  • Size: 92.8 KB
Statistics
  • Stars: 3
  • Watchers: 4
  • Forks: 1
  • Open Issues: 0
  • Releases: 2
Topics
jsonschema knowledge-graph python shacl
Created about 2 years ago · Last pushed about 1 year ago
Metadata Files
Readme License Citation

README.md

JSONSchema2SHACL

The repository contains the source code for extracting and generating SHACL shapes from JSONSchema

Installation:

pip install jsonschema2shacl

Execution from CLI

To execute from command line run the following:

bash python3 -m jsonschema2shacl path_to_input_jsonschema.json

Execution as a library

If you want to include the module in your implementation: python import jsonschema2shacl json_converter = JsonSchemaToShacl() json_converter.translate(schema)

Authors

Owner

  • Name: CiTIUS
  • Login: citiususc
  • Kind: organization
  • Email: citius@usc.es
  • Location: Santiago de Compostela

Centro Singular de Investigación en Tecnoloxías Intelixenteas da Universidade de Santiago de Compostela

Citation (CITATION.cff)

cff-version: 1.1.0
authors:
  - family-names: Suárez Montes 
    given-names: Óscar
  - family-names: Chaves-Fraga
    given-names: David
title: "JSONSchema2SHACL"
version: v0.2
date-released: 2025-02-01
doi: 10.5281/zenodo.14785173
                             

GitHub Events

Total
  • Release event: 3
  • Watch event: 1
  • Delete event: 1
  • Push event: 16
  • Pull request event: 6
  • Create event: 4
Last Year
  • Release event: 3
  • Watch event: 1
  • Delete event: 1
  • Push event: 16
  • Pull request event: 6
  • Create event: 4

Committers

Last synced: over 1 year ago

All Time
  • Total Commits: 15
  • Total Committers: 3
  • Avg Commits per committer: 5.0
  • Development Distribution Score (DDS): 0.333
Past Year
  • Commits: 15
  • Committers: 3
  • Avg Commits per committer: 5.0
  • Development Distribution Score (DDS): 0.333
Top Committers
Name Email Commits
Óscar Suárez Montes o****m@p****e 10
David Chaves d****a@g****m 3
Oscar Suarez o****7@g****m 2
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 3
  • Total pull requests: 5
  • Average time to close issues: 3 days
  • Average time to close pull requests: about 6 hours
  • Total issue authors: 2
  • Total pull request authors: 2
  • Average comments per issue: 2.67
  • Average comments per pull request: 0.0
  • Merged pull requests: 4
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 5
  • Average time to close issues: N/A
  • Average time to close pull requests: about 6 hours
  • Issue authors: 0
  • Pull request authors: 2
  • Average comments per issue: 0
  • Average comments per pull request: 0.0
  • Merged pull requests: 4
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • xuemduan (3)
  • dachafra (1)
Pull Request Authors
  • dachafra (3)
  • osm0512 (2)
Top Labels
Issue Labels
bug (3)
Pull Request Labels

Dependencies

.github/workflows/run_test.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v4 composite
requirements.txt pypi
  • jsonpath-ng ==1.6.1
  • owlrl ==6.0.2
  • pyshacl ==0.26.0
  • rdflib ==7.0.0
requirements_dev.txt pypi
  • coverage ==7.5.4 development
  • jsonpath-ng ==1.6.1 development
  • owlrl ==6.0.2 development
  • pyshacl ==0.26.0 development
  • pytest ==8.2.2 development
  • rdflib ==7.0.0 development