Skip to content

Commit

Permalink
Merge pull request #1 from dbpedia/master
Browse files Browse the repository at this point in the history
updating last changes for UI
  • Loading branch information
asanchez75 authored Jan 9, 2018
2 parents 55d7c31 + a64a34e commit 5159b59
Show file tree
Hide file tree
Showing 12 changed files with 1,001 additions and 361 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@
target/
Schema/
result/
.DS_Store

/bin/
151 changes: 151 additions & 0 deletions guidelines/web/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -223,4 +223,155 @@ div#questionnaire div input[type="text"] {
.textbox-popover {
position: relative;
left: 155px;
}

@keyframes lds-spinner {
0% {
opacity: 1;
}
100% {
opacity: 0;
}
}
@-webkit-keyframes lds-spinner {
0% {
opacity: 1;
}
100% {
opacity: 0;
}
}
.lds-spinner {
position: relative;
margin: 0 auto;
text-align: center;
width: 100%;
height: 100%;
display: none;
}
.lds-spinner div {
margin: 0;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
-webkit-animation: lds-spinner linear 1s infinite;
animation: lds-spinner linear 1s infinite;
background: #ffffff;
width: 12px;
height: 34px;
border-radius: 20%;
-webkit-transform-origin: 6px 77px;
transform-origin: 6px 77px;
}
.lds-spinner div:nth-child(1) {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
-webkit-animation-delay: -0.916666666666667s;
animation-delay: -0.916666666666667s;
}
.lds-spinner div:nth-child(2) {
-webkit-transform: rotate(30deg);
transform: rotate(30deg);
-webkit-animation-delay: -0.833333333333333s;
animation-delay: -0.833333333333333s;
}
.lds-spinner div:nth-child(3) {
-webkit-transform: rotate(60deg);
transform: rotate(60deg);
-webkit-animation-delay: -0.75s;
animation-delay: -0.75s;
}
.lds-spinner div:nth-child(4) {
-webkit-transform: rotate(90deg);
transform: rotate(90deg);
-webkit-animation-delay: -0.666666666666667s;
animation-delay: -0.666666666666667s;
}
.lds-spinner div:nth-child(5) {
-webkit-transform: rotate(120deg);
transform: rotate(120deg);
-webkit-animation-delay: -0.583333333333333s;
animation-delay: -0.583333333333333s;
}
.lds-spinner div:nth-child(6) {
-webkit-transform: rotate(150deg);
transform: rotate(150deg);
-webkit-animation-delay: -0.5s;
animation-delay: -0.5s;
}
.lds-spinner div:nth-child(7) {
-webkit-transform: rotate(180deg);
transform: rotate(180deg);
-webkit-animation-delay: -0.416666666666667s;
animation-delay: -0.416666666666667s;
}
.lds-spinner div:nth-child(8) {
-webkit-transform: rotate(210deg);
transform: rotate(210deg);
-webkit-animation-delay: -0.333333333333333s;
animation-delay: -0.333333333333333s;
}
.lds-spinner div:nth-child(9) {
-webkit-transform: rotate(240deg);
transform: rotate(240deg);
-webkit-animation-delay: -0.25s;
animation-delay: -0.25s;
}
.lds-spinner div:nth-child(10) {
-webkit-transform: rotate(270deg);
transform: rotate(270deg);
-webkit-animation-delay: -0.166666666666667s;
animation-delay: -0.166666666666667s;
}
.lds-spinner div:nth-child(11) {
-webkit-transform: rotate(300deg);
transform: rotate(300deg);
-webkit-animation-delay: -0.083333333333333s;
animation-delay: -0.083333333333333s;
}
.lds-spinner div:nth-child(12) {
-webkit-transform: rotate(330deg);
transform: rotate(330deg);
-webkit-animation-delay: 0s;
animation-delay: 0s;
}
/** LIGHTBOX MARKUP **/

.lightbox {
/** Default lightbox to hidden */
display: none;

margin: 0 auto;
/** Position and style */
position: fixed;
z-index: 999;
width: 100%;
height: 100%;
text-align: center;
top: 0;
left: 0;
background: rgba(0,0,0,0.8);
}

.lightbox img {
/** Pad the lightbox image */
max-width: 90%;
max-height: 80%;
margin-top: 2%;
}

.lightbox:target {
/** Remove default browser outline */
outline: none;
text-align: center;

/** Unhide lightbox **/
display: block;
}
.col-sm-8, .col-sm-4 {
font-size: 10px;
position: relative;
top: -10px;
left: -15px;
}
40 changes: 16 additions & 24 deletions guidelines/web/guideline_form.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,6 @@
"targetClass": "owl:Class",
"targetSubjectsOf": "rdfs:subClassOf",
"questions": [
{
"id": 1,
"type": "toggle",
"name": "classes-have-instances",
"label": "All classes must have instances",
"description": "Select this test if your ontology does not accept non-instantiated classes, i.e., classes that works as roles.",
"shacl": "sh:sparql",
"test": []
},
{
"id": 2,
"type": "toggle-textbox",
Expand All @@ -28,14 +19,15 @@
" $this rdfs:subClassOf owl:Thing .",
" FILTER($this NOT IN (",
" <$input$>,",
" ))."
" )) .",
" } "
]
},
{
"id": 3,
"type": "toggle",
"name": "label-every-class",
"label": "Every class must have a label",
"label": "Classes must have a label",
"description": "Each <code>owl:Class</code> must have at least one <code>rdfs:label</code>, which must be unique for each language.",
"shacl": "sh:property",
"test": [
Expand All @@ -49,7 +41,7 @@
"id": 4,
"type": "toggle",
"name": "comment-every-class",
"label": "Every class must have a comment",
"label": "Classes must have a comment",
"description": "Each <code>owl:Class</code> must have at least one <code>rdfs:comment</code>, which must be unique for each language.",
"shacl": "sh:property",
"test": [
Expand All @@ -63,7 +55,7 @@
"id": 5,
"type": "toggle",
"name": "no-multiple-superclass",
"label": "Every class must have at most one superclass",
"label": "Classes must have at most one superclass",
"description": "Each <code>owl:Class</code> must have at most one superclass.",
"shacl": "sh:property",
"test": [
Expand Down Expand Up @@ -92,17 +84,17 @@
"Properties": {
"shape": "PropertyShape",
"targetClass": [
"rdf:Property;",
"owl:DatatypeProperty;",
"owl:ObjectProperty;"
"rdf:Property",
"owl:DatatypeProperty",
"owl:ObjectProperty"
],
"targetSubjectsOf": "rdfs:subPropertyOf;",
"targetSubjectsOf": "rdfs:subPropertyOf",
"questions": [
{
"id": 7,
"type": "toggle",
"name": "label-every-property",
"label": "Every property must have a label",
"label": "Properties must have a label",
"description": "Each <code>rdf:Property</code>, <code>owl:DatatypeProperty</code> or <code>owl:ObjectProperty</code> must have at least one <code>rdfs:label</code>, which must be unique for each language.",
"shacl": "sh:property",
"test": [
Expand All @@ -116,7 +108,7 @@
"id": 8,
"type": "toggle",
"name": "comment-every-property",
"label": "Every property must have a comment",
"label": "Properties must have a comment",
"description": "Each <code>rdf:Property</code>, <code>owl:DatatypeProperty</code> or <code>owl:ObjectProperty</code> must have at least one <code>rdfs:comment</code>, which must be unique for each language.",
"shacl": "sh:property",
"test": [
Expand All @@ -130,7 +122,7 @@
"id": 9,
"type": "toggle",
"name": "no-multiple-domain",
"label": "Every property must have at most one domain",
"label": "Properties must have at most one domain",
"description": "Each <code>rdf:Property</code>, <code>owl:DatatypeProperty</code> or <code>owl:ObjectProperty</code> must have at most one <code>rdfs:domain</code>.",
"shacl": "sh:property",
"test": [
Expand All @@ -142,7 +134,7 @@
"id": 10,
"type": "toggle",
"name": "must-have-domain",
"label": "Every property must have at least one domain, which is a class",
"label": "Properties must have at least one domain, which is a class",
"description": "Each <code>rdf:Property</code>, <code>owl:DatatypeProperty</code> or <code>owl:ObjectProperty</code> must have at least one <code>rdfs:domain</code> that is defined as an <code>owl:Class.</code>",
"shacl": "sh:property",
"test": [
Expand All @@ -155,7 +147,7 @@
"id": 11,
"type": "toggle",
"name": "no-multiple-range",
"label": "Every property must have at most one range",
"label": "Properties must have at most one range",
"description": "Each <code>rdf:Property</code>, <code>owl:DatatypeProperty</code> or <code>owl:ObjectProperty</code> must have at most one <code>rdfs:range</code>.",
"shacl": "sh:property",
"test": [
Expand All @@ -167,7 +159,7 @@
"id": 12,
"type": "toggle",
"name": "must-have-range",
"label": "Every property must have at least one range, which is a class",
"label": "Properties must have at least one range, which is a class",
"description": "Each <code>rdf:Property</code>, <code>owl:DatatypeProperty</code> or <code>owl:ObjectProperty</code> must have at least one <code>rdfs:range</code> that is defined as an <code>owl:Class.</code>",
"shacl": "sh:property",
"test": [
Expand All @@ -180,7 +172,7 @@
"id": 13,
"type": "toggle",
"name": "no-multiple-superproperty",
"label": "Every property must have at most one superproperty",
"label": "Properties must have at most one superproperty",
"description": "Each <code>rdf:Property</code>, <code>owl:DatatypeProperty</code> or <code>owl:ObjectProperty</code> must have at most one superproperty",
"shacl": "sh:property",
"test": [
Expand Down
Loading

0 comments on commit 5159b59

Please sign in to comment.