SHACL Form Generator
This repository contains the SHACL form-generator Vue 2 component used in Coscine and the AIMS project.
Development

(For a specific branch, build such a URL: https://gitpod.io/#https://git.rwth-aachen.de/coscine/frontend/libraries/form-generator/tree/{branch}
)
Project setup
yarn install
Compiles and minifies for production
yarn build
Lints files
yarn lint
Lints and fixes files
yarn lint:fix
Usage
Check the property definitions of /src/FormGenerator.vue
for understanding the requirements.
<FormGenerator
:directly-create-rdf-type="directlyCreateRdfType"
:disabled-mode="formDisabled"
:fixed-value-mode="fixedValueMode"
:fixed-values="fixedValues"
:form-data="metadata"
:form-data-mime-type="metadataMimeType"
:locale="locale"
:selected-shape="applicationProfileUrl"
:shape-mime-type="shapeMimeType"
:shapes="applicationProfile"
:validation-context="validationContext"
:definedSubject="definedSubject"
:class-receiver="implementedReceiveClass"
:user-receiver="implementedReceiveUser"
@input="inputMetadata"
@inputFixedValues="inputFixedValues"
@isValid="isValid"
@isValidating="isValidating"
/>
How to include in your Vue project:
import Vue from "vue";
import FormGenerator from "@coscine/form-generator";
import "@coscine/form-generator/dist/style.css";
Vue.use(FormGenerator);