Skip to content

Commit

Permalink
MaJ demo SAPA formulaire
Browse files Browse the repository at this point in the history
  • Loading branch information
tfrancart committed Nov 28, 2024
1 parent aac32e0 commit 0940169
Show file tree
Hide file tree
Showing 12 changed files with 4,490 additions and 6 deletions.
1,198 changes: 1,198 additions & 0 deletions demos/demo-sapa-instantiations/form-configs/collections-shacl.ttl

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"bindings": [
{
"variable": "OriginalName",
"node": {
"type": "UserPrompt",
"name": {
"en": "original name",
"fr": "nom d'origine"
}
}
},
{
"variable": "Fonds",
"node": {
"type": "UserPrompt",
"name": {
"en": "fonds",
"fr": "fonds"
}
}
},
{
"variable": "ContainerFormat",
"node": {
"type": "UserPrompt",
"name": {
"en": "container format",
"fr": "format container"
}
}
},
{
"variable": "VideoFormat",
"node": {
"type": "UserPrompt",
"name": {
"en": "video format",
"fr": "format vidéo"
}
}
},
{
"variable": "AudioFormat",
"node": {
"type": "UserPrompt",
"name": {
"en": "audio format",
"fr": "format audio"
}
}
},
{
"variable": "Standard",
"node": {
"type": "UserPrompt",
"name": {
"en": "standard",
"fr": "standard"
}
}
}
]
}
195 changes: 195 additions & 0 deletions demos/demo-sapa-instantiations/form-configs/instantiations/query.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,195 @@
{
"distinct": true,
"variables": [
{
"termType": "Variable",
"value": "File"
},
{
"termType": "Variable",
"value": "ContainerFormat"
},
{
"termType": "Variable",
"value": "VideoFormat"
},
{
"termType": "Variable",
"value": "AudioFormat"
},
{
"termType": "Variable",
"value": "Standard"
},
{
"termType": "Variable",
"value": "Size"
},
{
"termType": "Variable",
"value": "Instantiation"
},
{
"termType": "Variable",
"value": "Cote1"
},
{
"termType": "Variable",
"value": "Cote2"
},
{
"termType": "Variable",
"value": "RecordResource"
},
{
"termType": "Variable",
"value": "Fonds"
}
],
"order": null,
"branches": [
{
"line": {
"s": "File",
"p": "http://shapes.performing-arts.ch/instantiations/File_originalName",
"o": "OriginalName",
"sType": "http://shapes.performing-arts.ch/instantiations/File",
"oType": "http://special/Z_Text",
"values": []
},
"children": [],
"optional": false
},
{
"line": {
"s": "File",
"p": "http://shapes.performing-arts.ch/instantiations/File_hasFormat",
"o": "VideoFormat",
"sType": "http://shapes.performing-arts.ch/instantiations/File",
"oType": "http://shapes.performing-arts.ch/instantiations/VideoFormat",
"values": []
},
"children": [],
"optional": true
},
{
"line": {
"s": "File",
"p": "http://shapes.performing-arts.ch/instantiations/File_hasFormat",
"o": "AudioFormat",
"sType": "http://shapes.performing-arts.ch/instantiations/File",
"oType": "http://shapes.performing-arts.ch/instantiations/AudioFormat",
"values": []
},
"children": [],
"optional": true
},
{
"line": {
"s": "File",
"p": "http://shapes.performing-arts.ch/instantiations/File_hasFormat",
"o": "ContainerFormat",
"sType": "http://shapes.performing-arts.ch/instantiations/File",
"oType": "http://shapes.performing-arts.ch/instantiations/ContainerFormat",
"values": []
},
"children": [],
"optional": true
},
{
"line": {
"s": "File",
"p": "http://shapes.performing-arts.ch/instantiations/File_isIncludedIn",
"o": "Instantiation",
"sType": "http://shapes.performing-arts.ch/instantiations/File",
"oType": "http://shapes.performing-arts.ch/instantiations/Representation",
"values": []
},
"children": [
{
"line": {
"s": "Instantiation",
"p": "http://shapes.performing-arts.ch/sparnatural/Instantiation_inversePath_hasInstantiation",
"o": "RecordResource",
"sType": "http://shapes.performing-arts.ch/instantiations/Representation",
"oType": "http://shapes.performing-arts.ch/collections/RecordResource",
"values": []
},
"children": [
{
"line": {
"s": "RecordResource",
"p": "http://shapes.performing-arts.ch/sparnatural/RecordResource_optional_isOrWasConstituentOf_zeroOrMore_isOrWasIncludedIn",
"o": "Fonds",
"sType": "http://shapes.performing-arts.ch/collections/RecordResource",
"oType": "http://shapes.performing-arts.ch/sparnatural/Fonds",
"values": []
},
"children": []
}
]
},
{
"line": {
"s": "Instantiation",
"p": "http://shapes.performing-arts.ch/instantiations/Instantiation_identifier",
"o": "Cote1",
"sType": "http://shapes.performing-arts.ch/instantiations/Representation",
"oType": "http://special/Z_Text",
"values": []
},
"children": [],
"optional": true
},
{
"line": {
"s": "Instantiation",
"p": "http://shapes.performing-arts.ch/instantiations/Instantiation_hasOrHadIdentifier",
"o": "MainIdentifier_33",
"sType": "http://shapes.performing-arts.ch/instantiations/Representation",
"oType": "http://shapes.performing-arts.ch/sparnatural/MainIdentifier",
"values": []
},
"children": [
{
"line": {
"s": "MainIdentifier_33",
"p": "http://shapes.performing-arts.ch/instantiations/Identifier_value",
"o": "Cote2",
"sType": "http://shapes.performing-arts.ch/sparnatural/MainIdentifier",
"oType": "http://special/Z_Text",
"values": []
},
"children": [],
"optional": true
}
],
"optional": true
}
]
},
{
"line": {
"s": "File",
"p": "http://shapes.performing-arts.ch/instantiations/File_hasStandard",
"o": "Standard",
"sType": "http://shapes.performing-arts.ch/instantiations/File",
"oType": "http://shapes.performing-arts.ch/instantiations/Standard",
"values": []
},
"children": [],
"optional": true
},
{
"line": {
"s": "File",
"p": "http://shapes.performing-arts.ch/instantiations/File_size",
"o": "Size",
"sType": "http://shapes.performing-arts.ch/instantiations/File",
"oType": "http://special/Z_Text",
"values": []
},
"children": []
}
]
}
4 changes: 2 additions & 2 deletions demos/demo-sapa-instantiations/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,14 @@ <h1><a href="index.html" data-i18n="page.title"></a></h1>

<nav id="navbar" class="navbar">
<ul>
<li><a class="nav-link" href="http://sparnatural.eu"><i style="font-size:25px;" class="fa-thin fa-house"></i>&nbsp;Home</a></li>
<li><a class="nav-link" href="index.html">Advanced query</a></li>
<li><a class="nav-link" href="search_instantiations.html">Instantiation Query</a></li>
<li class="dropdown"><a href="#"><i style="font-size:25px;" class="fa-thin fa-globe-africa"></i>&nbsp;<span>Lang.</span> <i class="bi bi-chevron-down"></i></a>
<ul style="width:80%;">
<li><a href="?lang=fr">fr</a></li>
<li><a href="?lang=en">en</a></li>
</ul>
</li>
<li><a class="nav-link" href="https://github.com/sparna-git/Sparnatural"><i style="font-size:25px;" class="fab fa-github"></i>&nbsp; Github</a></li>
</ul>
<i class="bi bi-list mobile-nav-toggle"></i>
</nav><!-- .navbar -->
Expand Down
Loading

0 comments on commit 0940169

Please sign in to comment.