Git Product home page Git Product logo

samkenxshacl2md's Introduction

shacl2md

Synopsis

Generates datamodel documentation from SHACL and/or RDFS files.

Documentation

For more information about the internals of this library: see the automatically generated documentation

Usage:

Python code

sh_md = ShaclMarkdownGenerator(
    languages=["nl", "en", "fr"],
    output_dir="./",
    shacl_shacl_validation=True,
    version_directory=True,
    crosslink_between_graphs=True,
    ontology_graphs=[
        "/datamodels/ontologies/dct.rdfs.ttl",
        "/datamodels/ontologies/ebucore.rdfs.ttl",
        "/datamodels/ontologies/edm.rdfs.ttl",
        "/datamodels/ontologies/foaf.rdfs.ttl",
        "/datamodels/ontologies/org.rdfs.ttl",
        "/datamodels/ontologies/premis.rdfs.ttl",
        "/datamodels/ontologies/prov.rdfs.ttl",
        "/datamodels/ontologies/rdf.rdfs.ttl",
        "/datamodels/ontologies/schema.rdfs.ttl",
        "/datamodels/ontologies/seq.rdfs.ttl",
        "/datamodels/ontologies/skos.rdfs.ttl",
        "/datamodels/ontologies/skos-xl.rdfs.ttl",
        "/datamodels/organizations/organizations.rdfs.ttl",
        "/datamodels/organizations/organization-roles.skos.ttl",
        "/datamodels/organizations/organization-types.skos.ttl",
        "/datamodels/objects/objects.rdfs.ttl",

    ]
)
sh_md.generate(organization="/datamodels/organizations/organizations.shacl.ttl",
               descriptive="/datamodels/description/description.shacl.ttl",
               events="/datamodels/events/events.shacl.ttl",
               object="/datamodels/objects/objects.shacl.ttl",
               terms="/datamodels/terms/terms.shacl.ttl",)

CLI

Instalation

$ pip install shacl2md

shacl2md generate

Usage:

$ shacl2md generate [OPTIONS] SHACL_FILES...

Arguments:

  • SHACL_FILES...: The path to SHACL files, with graph name to be processed, in the form of graph_name:./path/to/shacl_file/ttl [required]

Options:

  • -l, --languages TEXT: The languages to generate the documentation for [required]
  • -o, --output_dir TEXT: The directory to output the documentation to [default: ./docs]
  • --ontology_file TEXT: The path to the ontology files
  • --shacl_shacl_validation: Validate the SHACL files with SHACL
  • --version_directory: Create a version directory for the documentation
  • --crosslink: Crosslink between graphs
  • --jekyll_parent_page TEXT: The parent page for the Jekyll documentation [default: index]
  • --jekyll_layout TEXT: The layout for the Jekyll documentation [default: default]
  • --jekyll_nav_order INTEGER: The navigation order for the Jekyll documentation [default: 1]
  • --help: Show this message and exit.

Result example

developer.meemoo.be

samkenxshacl2md's People

Contributors

lennertvandevelde avatar mielvds avatar sharpycobra avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.