-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
13,338 additions
and
3,853 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
dist/ | ||
node_modules/ | ||
out-tsc/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,11 +5,18 @@ | |
@prefix dcat: <http://www.w3.org/ns/dcat#> . | ||
@prefix geo: <http://www.opengis.net/ont/geosparql#> . | ||
|
||
<test> a dcat:Dataset, fidbau:ArchitectureModelDataset ; | ||
<http://example.org/fidbau#4f2a8de3-9fc8-40a9-9237-d5964520ec54> | ||
a dcat:Dataset, fidbau:ArchitectureModelDataset ; | ||
dcterms:title "Einsteinturm" ; | ||
dcterms:spatial [ | ||
a dcterms:Location ; | ||
geo:asWKT "POINT(8.65,49.87)"^^geo:wktLiteral ; | ||
dcterms:description "Building has been realized here" ; | ||
] ; | ||
schema:material "Holz" . | ||
schema:material "Holz" ; | ||
<http://purl.org/dc/terms/creator> _:n1150716783622461953 . | ||
_:n1150716783622461953 | ||
<http://xmlns.com/foaf/0.1/name> "Stephan Tittel" ; | ||
<http://xmlns.com/foaf/0.1/mbox> "[email protected]" ; | ||
<http://purl.org/dc/terms/identifier> "https://orcid.org/0000-0002-0048-6835" ; | ||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Agent> . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Example 1</title> | ||
<script src="./index.js" type="module"></script> | ||
</head> | ||
|
||
<body> | ||
<shacl-form | ||
id="shacl-form" | ||
data-shapes="" | ||
> | ||
<button type="submit" class="btn btn-primary" onclick="save()">Submit</button> | ||
</shacl-form> | ||
<script> | ||
const form = document.getElementById("shacl-form") | ||
form.dataset['shapes'] = `@prefix sh: <http://www.w3.org/ns/shacl#> . | ||
@prefix schema: <http://schema.org/> . | ||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
@prefix dash: <http://datashapes.org/dash#> . | ||
@prefix foaf: <http://xmlns.com/foaf/0.1/> . | ||
@prefix vcard: <http://www.w3.org/2006/vcard/ns#> . | ||
@prefix ex: <http://example.com/> . | ||
@prefix lexvo: <http://lexvo.org/id/iso639-1/> . | ||
ex:PersonShape | ||
a sh:NodeShape ; | ||
sh:targetClass schema:Person ; | ||
rdfs:label "Person", "Osoba"@pl ; | ||
sh:property ex:NameProperty , | ||
ex:KnowsProperty , | ||
ex:AgeProperty , | ||
ex:GenderProperty , | ||
ex:SpokenLanguagesProperty , | ||
ex:DateOfBirthProperty , | ||
ex:HomePageProperty ; | ||
. | ||
ex:SimplifiedPersonShape | ||
a sh:NodeShape ; | ||
sh:targetNode ex:Jane_Doe ; | ||
rdfs:label "Person (name-only)", "Osoba (tylko imię)"@pl ; | ||
sh:property ex:NameProperty ; | ||
. | ||
ex:NameProperty | ||
sh:path schema:name ; | ||
sh:name "Name" ; | ||
sh:datatype xsd:string ; | ||
dash:singleLine true ; | ||
sh:maxCount 1 ; | ||
sh:minCount 1 ; | ||
sh:order 2 ; | ||
sh:description "Enter the name of the person here. You should adhere to the scheme <firstname> <lastname>" | ||
. | ||
ex:KnowsProperty | ||
sh:path schema:knows ; | ||
sh:class schema:Person ; | ||
sh:group ex:FriendGroup ; | ||
sh:description "All the persons that this person knows" | ||
. | ||
ex:AgeProperty | ||
sh:path schema:age ; | ||
sh:name "Age", "Wiek"@pl ; | ||
sh:datatype xsd:integer ; | ||
sh:maxCount 1 ; | ||
sh:defaultValue 21 ; | ||
sh:order 2 ; | ||
sh:minInclusive 18 ; | ||
. | ||
ex:GenderProperty | ||
sh:path foaf:gender ; | ||
sh:name "Gender", "Płeć"@pl ; | ||
sh:in ( | ||
"Male" "Female" "Other" "Prefer not to tell" | ||
) ; | ||
sh:defaultValue "Male" ; | ||
sh:maxCount 1 ; | ||
sh:order 3 ; | ||
sh:message "Please select a valid gender" ; | ||
. | ||
ex:DateOfBirthProperty | ||
sh:path schema:birthDate ; | ||
sh:name "Date of birth", "Data urodzenia"@pl ; | ||
sh:maxCount 1 ; | ||
sh:order 4 ; | ||
sh:datatype xsd:date ; | ||
. | ||
ex:SpokenLanguagesProperty | ||
sh:path vcard:language ; | ||
sh:name "Spoken languages", "Języki"@pl ; | ||
sh:nodeKind sh:IRI ; | ||
sh:in ( | ||
lexvo:en lexvo:de lexvo:fr lexvo:pl lexvo:es | ||
) ; | ||
sh:order 5 ; | ||
sh:minCount 1 ; | ||
sh:maxCount 2 ; | ||
. | ||
ex:HomePageProperty | ||
sh:path foaf:homepage ; | ||
sh:name "Homepage URL", "Strona internetowa"@pl ; | ||
sh:nodeKind sh:IRI ; | ||
sh:order 6 ; | ||
. | ||
ex:FriendGroup | ||
a sh:PropertyGroup ; | ||
rdfs:label "Acquaintances", "Znajomi"@pl | ||
. | ||
lexvo:en rdfs:label "English", "angielski"@pl . | ||
lexvo:de rdfs:label "German", "niemiecki"@pl . | ||
lexvo:fr rdfs:label "French", "francuski"@pl . | ||
lexvo:pl rdfs:label "Polish", "polski"@pl . | ||
lexvo:es rdfs:label "Spanish", "hiszpański"@pl .` | ||
</script> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export * from './index' | ||
export * from './plugins/index' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
export { ShaclForm } from './form' | ||
export { ShaclProperty } from './property' | ||
export { Plugin } from './plugin' | ||
export { InputBase, Editor } from './inputs' | ||
export { Theme, BootstrapTheme, DefaultTheme } from './theme' |
Oops, something went wrong.