Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ansell/rdf4j-schema-generator
Generates RDF4J Vocabulary classes from RDFS or OWL Schemas
https://github.com/ansell/rdf4j-schema-generator
owl rdf rdf4j rdfs schema
Last synced: about 2 months ago
JSON representation
Generates RDF4J Vocabulary classes from RDFS or OWL Schemas
- Host: GitHub
- URL: https://github.com/ansell/rdf4j-schema-generator
- Owner: ansell
- License: apache-2.0
- Created: 2017-02-23T05:04:47.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-07-15T19:54:42.000Z (over 2 years ago)
- Last Synced: 2024-06-11T18:22:57.919Z (7 months ago)
- Topics: owl, rdf, rdf4j, rdfs, schema
- Language: Java
- Size: 415 KB
- Stars: 15
- Watchers: 4
- Forks: 1
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RDF4J Schema Generator
[![Build Status](https://travis-ci.org/ansell/rdf4j-schema-generator.svg?branch=master)](https://travis-ci.org/ansell/rdf4j-schema-generator) [![Coverage Status](https://coveralls.io/repos/ansell/rdf4j-schema-generator/badge.svg?branch=master)](https://coveralls.io/r/ansell/rdf4j-schema-generator?branch=master)
RDF4J Schema Generator provides a command line tool and maven plugin that allows to create constants for RDF primitives for a given namespace from RDF ontology files.
## How To
1. Clone from https://github.com/ansell/rdf4j-schema-generator.git
1. Run `./rdf4j-schema-generator `
1. Additional information can be configured using command-line parameters## Command Line Options
```
the input file to read from
[] the output file to write, StdOut if
omitted
-b,--languageBundles generate L10N LanguageBundles
-c,--constantCase case to use for URI constants,
possible values: LOWER_UNDERSCORE,
LOWER_CAMEL, UPPER_CAMEL,
UPPER_UNDERSCORE
-C,--stringConstantCase case to use for String constants, see
constantCase
-f,--format mime-type of the input file (will try
to guess if absent)
-h,--help print this help
-l,--language preferred language for schema
labels
-n,--name the name of the namespace (will try to
guess from the input file if absent)
-P,--stringConstantPrefix prefix to create string constants
(e.g. _)
-p,--package package declaration (will use default
(empty) package if absent)
-s,--spaces use spaces for indentation (tabs if
missing, 4 spaces if no number given)
-S,--stringConstantSuffix suffix to create string constants
(e.g. _STRING)
-u,--uri the prefix for the schema (if not
available in the input file)
```## Run from Git
## Maven Plugin
```xml
com.github.ansell.rdf4j-schema-generator
schema-generator-maven-plugin
0.4.2
generate-schemas
generate-sources
generate
${project.build.directory}/generated-sources/rdf4j-schemas
com.example.rdf4j.schemas
text/turtle
en
true
UPPER_UNDERSCORE
true
UPPER_UNDERSCORE
_
_STRING
LDP
http://www.w3.org/ns/ldp#
core/src/test/resources/ldp.ttl
RDF
http://www.w3.org/1999/02/22-rdf-syntax-ns
com.github.ansell.rdf4j-schema-generator
schema-generator
0.4.2
```
# Changelog
## 2018-11-03
* Release 0.4.2
* Upgrade to RDF4J-2.4.1## 2017-05-25
* Release 0.4
* Update dependency versions## 2017-04-03
* Release 0.3
* Add schema auto-discovery## 2017-02-28
* Release 0.2
* Support local name string constants that are widely used
* Support rendering templates using Freemarker for extensibility and maintenance## 2017-02-24
* Release 0.1## 2017-02-23
* Rebranded to rdf4j-schema-generator
* Converted to use RDF4J
* Version dropped to 0.1-SNAPSHOT for active development