Holger Knublauch

UI progress

......@@ -325,6 +325,46 @@ app:isDatatypeEnumeration
spin:private "true"^^xsd:boolean ;
spin:returnType xsd:boolean .
app:isDatatypeRange
rdf:type spin:Function ;
rdfs:comment "Checks whether a given resource (typically the range of a property) is a datatype. It must either be equal to rdfs:Literal or an instance of rdfs:Datatype."^^xsd:string ;
rdfs:label "is datatype range"^^xsd:string ;
rdfs:subClassOf app:Functions ;
spin:body
[ rdf:type sp:Ask ;
sp:where ([ rdf:type sp:Filter ;
sp:expression
[ rdf:type sp:bound ;
sp:arg1 [ sp:varName "range"^^xsd:string
]
]
] [ rdf:type sp:Filter ;
sp:expression
[ rdf:type sp:or ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 [ sp:varName "range"^^xsd:string
] ;
sp:arg2 rdfs:Literal
] ;
sp:arg2 [ rdf:type sp:exists ;
sp:elements ([ sp:object rdfs:Datatype ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "range"^^xsd:string
]
])
]
]
])
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The range to check."^^xsd:string ;
spl:predicate arg:range ;
spl:valueType rdfs:Resource
] ;
spin:returnType xsd:boolean .
app:isImageURL
rdf:type spin:Function ;
rdfs:comment "Checks whether a given URL represents an image based on its suffix (.jpg, .gif or .png are recognized by default, but others can be added by putting an imageURLSuffix triple into a SWP file)."^^xsd:string ;
......@@ -1208,6 +1248,11 @@ arg:property
rdfs:label "property"^^xsd:string ;
rdfs:subPropertyOf sp:arg .
arg:range
rdf:type rdf:Property ;
rdfs:label "range"^^xsd:string ;
rdfs:subPropertyOf sp:arg .
arg:resource
rdf:type rdf:Property ;
rdfs:label "resource"^^xsd:string ;
......
This diff is collapsed. Click to expand it.
......@@ -18,7 +18,7 @@ body {
.appAutoComplete {
}
.appBaseFont, .appObjectWidget, .appLabeledObjectsLabelTD {
.appBaseFont, .appObjectWidget, .appLabeledObjectsTable {
font-size: 12px;
}
......@@ -30,7 +30,11 @@ body {
}
.appLabeledObjectsBodyTD {
padding: 0px;
padding: 0px 0px 1px 0px;
}
.appLabeledObjectsTabularLabel {
width: 160px;
}
.appLabeledObjectsTable {
......@@ -228,14 +232,14 @@ td.appPropertyWidgetObjectTD {
.appSubTitle {
color: gray;
font-size: 18px;
font-size: 15px;
font-weight: bold;
margin-bottom: 6px;
}
.appTitle {
color: gray;
font-size: 22px;
font-size: 18px;
font-weight: bold;
margin-bottom: 14px;
}
......
......@@ -44,7 +44,8 @@
</ui:if>
<ui:else>
{
name : 'label'
name : 'label',
width: 400
}
</ui:else>
],
......