Skip to content

Commit

Permalink
Deploying to gh-pages from @ 1637c7a 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
situx committed Oct 8, 2024
1 parent c41a779 commit 3f3668a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions geopubbyjs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,7 @@ <h3 id="relationtitle">Relationview</h3>
$('#relationtablebody').html("<tr><td colspan=3>Loading instance data....</td></tr>")
if(node.icon.includes("class.png")){
$('#relationtablebody').html("")
d3.sparql(endp, "SELECT DISTINCT ?rel ?relLabel ?val ?valLabel WHERE { ?con <"+typeproperty+"> <"+concept+ "> . ?con ?rel ?item . ?item <"+typeproperty+"> ?val . OPTIONAL{?val <http://www.w3.org/2000/01/rdf-schema#label> ?valLabel . FILTER(lang(?valLabel)=\"en\") } {?prop wikibase:directClaim ?rel . ?prop rdfs:label ?relLabel. filter(lang(?relLabel) = \"en\").}UNION{?rel <http://www.w3.org/2000/01/rdf-schema#label> ?relLabel . FILTER(lang(?relLabel)=\"en\") }}").then((results)=>{
d3.sparql(endp, "SELECT DISTINCT ?rel ?relLabel ?val ?valLabel WHERE { ?con <"+typeproperty+"> <"+concept+ "> . ?con ?rel ?item . ?item <"+typeproperty+"> ?val . OPTIONAL{?val <http://www.w3.org/2000/01/rdf-schema#label> ?valLabel . FILTER(lang(?valLabel)=\"en\") } {?prop <http://wikiba.se/ontology#directClaim> ?rel . ?prop rdfs:label ?relLabel. filter(lang(?relLabel) = \"en\").}UNION{?rel <http://www.w3.org/2000/01/rdf-schema#label> ?relLabel . FILTER(lang(?relLabel)=\"en\") }}").then((results)=>{
for(result in results){
toappend="<tr><td></td><td></td><td>"+thetitle+"</td>"
if(results[result]["rel"]["value"] in geoproperties && geoproperties[results[result]["rel"]["value"]]=="ObjectProperty"){
Expand Down Expand Up @@ -886,7 +886,7 @@ <h3 id="relationtitle">Relationview</h3>
toappend+="</td></tr>"
$('#relationtablebody').append(toappend)
}
d3.sparql($('#endpointselect').val(), "SELECT DISTINCT ?rel ?relLabel ?val ?valLabel WHERE { ?tocon <"+typeproperty+"> ?val . ?tocon ?rel ?con . ?con <"+typeproperty+"> <"+concept+ "> . OPTIONAL{?val <http://www.w3.org/2000/01/rdf-schema#label> ?valLabel FILTER(lang(?valLabel)=\"en\") } {?prop wikibase:directClaim ?rel . ?prop rdfs:label ?relLabel. filter(lang(?relLabel) = \"en\").}UNION{?rel <http://www.w3.org/2000/01/rdf-schema#label> ?relLabel . FILTER(lang(?relLabel)=\"en\") }}").then((results)=>{
d3.sparql($('#endpointselect').val(), "SELECT DISTINCT ?rel ?relLabel ?val ?valLabel WHERE { ?tocon <"+typeproperty+"> ?val . ?tocon ?rel ?con . ?con <"+typeproperty+"> <"+concept+ "> . OPTIONAL{?val <http://www.w3.org/2000/01/rdf-schema#label> ?valLabel FILTER(lang(?valLabel)=\"en\") } {?prop <http://wikiba.se/ontology#directClaim> ?rel . ?prop rdfs:label ?relLabel. filter(lang(?relLabel) = \"en\").}UNION{?rel <http://www.w3.org/2000/01/rdf-schema#label> ?relLabel . FILTER(lang(?relLabel)=\"en\") }}").then((results)=>{
for(result in results){
toappend="<tr><td><img onclick=\"getClassRelationDialog($('#jstree').jstree(true).get_node('" + results[result]["val"]["value"] + "'))\" src=\""+baseurl+"icons/class.png\" height=\"25\" width=\"25\" alt=\"Class\"/>"
suri=shortenURI(results[result]["val"]["value"])
Expand Down Expand Up @@ -1105,7 +1105,7 @@ <h3 id="relationtitle">Relationview</h3>
if(endp in endpointToProps){
typeproperty=endpointToProps[endp]["typeproperty"]
}
d3.sparql(endp, "SELECT (COUNT(distinct ?con) AS ?countcon) (COUNT(?rel) AS ?countrel) ?rel ?relLabel ?valtype\n WHERE { ?con <"+typeproperty+"> <"+concept+"> . ?con ?rel ?val .\n BIND( datatype(?val) AS ?valtype ) {?prop wikibase:directClaim ?rel . ?prop rdfs:label ?relLabel. filter(lang(?relLabel) = \"en\").}UNION{?rel <http://www.w3.org/2000/01/rdf-schema#label> ?relLabel . FILTER(lang(?relLabel)=\"en\") }}\n GROUP BY ?rel ?relLabel ?valtype\n ORDER BY DESC(?countrel)").then((results)=>{
d3.sparql(endp, "SELECT (COUNT(distinct ?con) AS ?countcon) (COUNT(?rel) AS ?countrel) ?rel ?relLabel ?valtype\n WHERE { ?con <"+typeproperty+"> <"+concept+"> . ?con ?rel ?val .\n BIND( datatype(?val) AS ?valtype ) {?prop <http://wikiba.se/ontology#directClaim> ?rel . ?prop rdfs:label ?relLabel. filter(lang(?relLabel) = \"en\").}UNION{?rel <http://www.w3.org/2000/01/rdf-schema#label> ?relLabel . FILTER(lang(?relLabel)=\"en\") }}\n GROUP BY ?rel ?relLabel ?valtype\n ORDER BY DESC(?countrel)").then((results)=>{
result="";
maxcons=1
first=true
Expand Down

0 comments on commit 3f3668a

Please sign in to comment.