Sparql: Difference between revisions

From solab
Jump to navigation Jump to search
 
(No difference)

Latest revision as of 11:53, 28 October 2023


Template sparql_category

Template:sparql_category


Sparql Basequery

name h c thumbnail Product Subjects


Error query  : PREFIX dct: <http://purl.org/dc/terms/>

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX dbp: <http://dbpedia.org/property/>
PREFIX dbo: <http://dbpedia.org/ontology/>
PREFIX dbr: <http://dbpedia.org/resource/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX dbrcat: <http://dbpedia.org/resource/Category:>
SELECT 
            #?id 
            # concat("", ?name, "") as ?Name
            ?name
            #concat("", ?h, "") as ?Homepage
            #concat("", ?c, "") as ?City
            #concat("[", ?thumbnail, "]") as ?Thumbnail
            #(group_concat(concat("",?p,""",?p,"" is not in the list (mobility, E-mobility, Crystalline modules, PV, ST, Absorbers, Law, Certification, Standards, Institution, ...) of allowed values for the "Product" property.");separator=",\n") as ?Product)
            #?s
            ?oc
            # concat("", ?o, "") as ?CompanyName
            ?o
    ?b
    #?c
  WHERE {
       VALUES ?s {dbrcat:Sparql}
       VALUES ?b { 1 1}
       OPTIONAL {?oc dct:subject ?s.
                 ?oc rdfs:label ?o .
                 FILTER (lang(?o) = 'en')
                }        
       OPTIONAL { ?s dbo:wikiPageID ?id}
       OPTIONAL { ?s dbo:abstract ?label}
       OPTIONAL { ?s dbp:name ?name }
       OPTIONAL { ?s dbp:commonName ?name }
       OPTIONAL { ?s foaf:name ?name }
       OPTIONAL { ?s rdfs:label ?name }
       OPTIONAL { ?s foaf:homepage ?h }
       OPTIONAL { ?s dbo:locationCity ?sc .
                  ?sc rdfs:label ?c .
                }
       OPTIONAL { ?s dbp:hqLocationCity ?sc .
                  ?sc rdfs:label ?c .
                 FILTER (lang(?c) = 'en')
                }
       OPTIONAL { ?s dbo:thumbnail ?thumbnail }
       OPTIONAL { ?s dbo:product ?sp . 
                  ?sp rdfs:label ?p .
                 FILTER (lang(?p) = 'en')
                  }
       FILTER (lang(?label) = 'en')
       FILTER (lang(?c) = 'en')
}

Error endpoint: http://dbpedia.org/sparql Error http_response_code: 502 Error message: <html>

   <head>

<title>Web Site Under Maintenance</title>

   </head>
   <body>
<img src="data:image/gif;base64,R0lGODlhMgAyAOYAAO/v7+7u7u3t7f//AOzs7Ovr6+rq6unp6ejo6Ofn5+bm5uXl5eTk5ODg4N/f397e3t3d3dzc3Nvb29ra2tnZ2djY2NfX19PT09LS0tHR0dDQ0M/Pz87OzszMzMvLy8rKysnJycjIyMbGxsXFxcTExMPDw8LCwsHBwby8vLu7u7e3t7a2trW1tbS0tLOzs7KysqysrKqqqqioqKampqWlpaSkpKGhoZ2dnZycnJqampmZmZiYmJWVlZSUlJKSko6OjoyMjIuLi4qKioaGhoWFhYSEhIGBgYCAgH9/f319fXl5eXh4eHd3d3Z2dnJycm5ubm1tbWlpaWdnZ2VlZWNjY2JiYgAAAP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEHAFcALAAAAAAyADIAAAf/gFeCg4SFhoeIiYqLjI2Oj5CRkVaUVpKXiJWVCQkIBgKYkpQDpAOUEhENDAYAoY6jpaSUGxcUDQqgroqwsbJWJB4XEQwEuplWvb2UKCIaEgwFxoW8yaWUKiUbE9DSgtSmlcpWLCYc29HG35rqVi0n5tyu3+CayZQu7+eh8/Th9lb44KGbhKzauoL/AuqDNOpgQ3/VwCmM1wgWwn4RDQLMR3EXwo/rMibkOPBYLGQHTYkcCa+YyZP9Cl7EqLGFiQ0SFuSaNjPmR3EQxbEooSFCglY8/zlcWu+fDBUiLjQwYIjaQ4gzQ2q8ASPFBwoMdnrr6TNiU40+bLwwgcEB1aRA/89mZHdESI4YKTpISGAoATuUQTWetHJEyRAeM1SAoLAA6aAEEqxa5Cfr3xEoTIr0oLEihAUGjgUhgLCBl7/AFlX6OjLliWHEihmHvlKgwQUSk2VKNr2aShQnSezi1cu3UIAFFDyguOprsFxKR6pIebKESNq1bd8WMmBbhIqHvnSnBBddCpQmRn5w9QpW7CAACSJoKMGiYfjwIaFLP38ESI6nUU2ViAALSLCBCS1QZhZh+zWBRBA6zDBUUUcpQgADE3BwggsKilPeeQ/uMINNOOnESAEYasghWR42GOIME7l0YoobdqifeQ4GIeJEJc2YYY0s3giijjCSJAmKP65oGcQVOL7IIyZIqigZa1E80cQRRD4ZSpRAanLZE04sYQQQEWrpCpcJVlIYE0okQcQPEbojUDdRmsCCDDj4IMQQRQwhhA84yEDOnN3QhuEGJagAgw068NADDzrYAAM22nREJwMSaDBCCi/EMEMNM8TwQgojOGNpoRdGcMEHJqSgwgoqpGDCB8IQU+ghAijgQAUZdABCCCB0kEEFDuByKyIAHMDAAxJUYEEFEjzAwAGzHVuIAAYowMC2CnxibSMABCButd+WK0ggADs=" style="float:left;"/>

The web-site you are currently trying to access is under maintenance at this time.

We are sorry for any inconvenience this has caused.
   </body>

</html>

Error number: 0 Error message:

Error data: Array (

   [query] => PREFIX dct: <http://purl.org/dc/terms/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX dbp: <http://dbpedia.org/property/>
PREFIX dbo: <http://dbpedia.org/ontology/>
PREFIX dbr: <http://dbpedia.org/resource/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX dbrcat: <http://dbpedia.org/resource/Category:>
SELECT 
            #?id 
            # concat("", ?name, "") as ?Name
            ?name
            #concat("", ?h, "") as ?Homepage
            #concat("", ?c, "") as ?City
            #concat("[", ?thumbnail, "]") as ?Thumbnail
            #(group_concat(concat("",?p,""",?p,"" is not in the list (mobility, E-mobility, Crystalline modules, PV, ST, Absorbers, Law, Certification, Standards, Institution, ...) of allowed values for the "Product" property.");separator=",\n") as ?Product)
            #?s
            ?oc
            # concat("", ?o, "") as ?CompanyName
            ?o
    ?b
    #?c
  WHERE {
       VALUES ?s {dbrcat:Sparql}
       VALUES ?b { 1 1}
       OPTIONAL {?oc dct:subject ?s.
                 ?oc rdfs:label ?o .
                 FILTER (lang(?o) = 'en')
                }        
       OPTIONAL { ?s dbo:wikiPageID ?id}
       OPTIONAL { ?s dbo:abstract ?label}
       OPTIONAL { ?s dbp:name ?name }
       OPTIONAL { ?s dbp:commonName ?name }
       OPTIONAL { ?s foaf:name ?name }
       OPTIONAL { ?s rdfs:label ?name }
       OPTIONAL { ?s foaf:homepage ?h }
       OPTIONAL { ?s dbo:locationCity ?sc .
                  ?sc rdfs:label ?c .
                }
       OPTIONAL { ?s dbp:hqLocationCity ?sc .
                  ?sc rdfs:label ?c .
                 FILTER (lang(?c) = 'en')
                }
       OPTIONAL { ?s dbo:thumbnail ?thumbnail }
       OPTIONAL { ?s dbo:product ?sp . 
                  ?sp rdfs:label ?p .
                 FILTER (lang(?p) = 'en')
                  }
       FILTER (lang(?label) = 'en')
       FILTER (lang(?c) = 'en')
}
   [output] => xml
   [Accept] => application/sparql-results+xml

)



Error query  : PREFIX dct: <http://purl.org/dc/terms/>

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX dbp: <http://dbpedia.org/property/>
PREFIX dbo: <http://dbpedia.org/ontology/>
PREFIX dbr: <http://dbpedia.org/resource/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX dbrcat: <http://dbpedia.org/resource/Category:>
SELECT 
            #?id 
            # concat("", ?name, "") as ?Name
            ?name
            #concat("", ?h, "") as ?Homepage
            #concat("", ?c, "") as ?City
            #concat("[", ?thumbnail, "]") as ?Thumbnail
            #(group_concat(concat("",?p,""",?p,"" is not in the list (mobility, E-mobility, Crystalline modules, PV, ST, Absorbers, Law, Certification, Standards, Institution, ...) of allowed values for the "Product" property.");separator=",\n") as ?Product)
            #?s
            ?oc
            # concat("", ?o, "") as ?CompanyName
            ?o
    ?b
    #?c
  WHERE {
       VALUES ?s {dbrcat:Sparql}
       VALUES ?b { 1 1}
       OPTIONAL {?oc dct:subject ?s.
                 ?oc rdfs:label ?o .
                 FILTER (lang(?o) = 'en')
                }        
       OPTIONAL { ?s dbo:wikiPageID ?id}
       OPTIONAL { ?s dbo:abstract ?label}
       OPTIONAL { ?s dbp:name ?name }
       OPTIONAL { ?s dbp:commonName ?name }
       OPTIONAL { ?s foaf:name ?name }
       OPTIONAL { ?s rdfs:label ?name }
       OPTIONAL { ?s foaf:homepage ?h }
       OPTIONAL { ?s dbo:locationCity ?sc .
                  ?sc rdfs:label ?c .
                }
       OPTIONAL { ?s dbp:hqLocationCity ?sc .
                  ?sc rdfs:label ?c .
                 FILTER (lang(?c) = 'en')
                }
       OPTIONAL { ?s dbo:thumbnail ?thumbnail }
       OPTIONAL { ?s dbo:product ?sp . 
                  ?sp rdfs:label ?p .
                 FILTER (lang(?p) = 'en')
                  }
       FILTER (lang(?label) = 'en')
       FILTER (lang(?c) = 'en')
}

Error endpoint: http://dbpedia.org/sparql Error http_response_code: 502 Error message: <html>

   <head>

<title>Web Site Under Maintenance</title>

   </head>
   <body>
<img src="data:image/gif;base64,R0lGODlhMgAyAOYAAO/v7+7u7u3t7f//AOzs7Ovr6+rq6unp6ejo6Ofn5+bm5uXl5eTk5ODg4N/f397e3t3d3dzc3Nvb29ra2tnZ2djY2NfX19PT09LS0tHR0dDQ0M/Pz87OzszMzMvLy8rKysnJycjIyMbGxsXFxcTExMPDw8LCwsHBwby8vLu7u7e3t7a2trW1tbS0tLOzs7KysqysrKqqqqioqKampqWlpaSkpKGhoZ2dnZycnJqampmZmZiYmJWVlZSUlJKSko6OjoyMjIuLi4qKioaGhoWFhYSEhIGBgYCAgH9/f319fXl5eXh4eHd3d3Z2dnJycm5ubm1tbWlpaWdnZ2VlZWNjY2JiYgAAAP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEHAFcALAAAAAAyADIAAAf/gFeCg4SFhoeIiYqLjI2Oj5CRkVaUVpKXiJWVCQkIBgKYkpQDpAOUEhENDAYAoY6jpaSUGxcUDQqgroqwsbJWJB4XEQwEuplWvb2UKCIaEgwFxoW8yaWUKiUbE9DSgtSmlcpWLCYc29HG35rqVi0n5tyu3+CayZQu7+eh8/Th9lb44KGbhKzauoL/AuqDNOpgQ3/VwCmM1wgWwn4RDQLMR3EXwo/rMibkOPBYLGQHTYkcCa+YyZP9Cl7EqLGFiQ0SFuSaNjPmR3EQxbEooSFCglY8/zlcWu+fDBUiLjQwYIjaQ4gzQ2q8ASPFBwoMdnrr6TNiU40+bLwwgcEB1aRA/89mZHdESI4YKTpISGAoATuUQTWetHJEyRAeM1SAoLAA6aAEEqxa5Cfr3xEoTIr0oLEihAUGjgUhgLCBl7/AFlX6OjLliWHEihmHvlKgwQUSk2VKNr2aShQnSezi1cu3UIAFFDyguOprsFxKR6pIebKESNq1bd8WMmBbhIqHvnSnBBddCpQmRn5w9QpW7CAACSJoKMGiYfjwIaFLP38ESI6nUU2ViAALSLCBCS1QZhZh+zWBRBA6zDBUUUcpQgADE3BwggsKilPeeQ/uMINNOOnESAEYasghWR42GOIME7l0YoobdqifeQ4GIeJEJc2YYY0s3giijjCSJAmKP65oGcQVOL7IIyZIqigZa1E80cQRRD4ZSpRAanLZE04sYQQQEWrpCpcJVlIYE0okQcQPEbojUDdRmsCCDDj4IMQQRQwhhA84yEDOnN3QhuEGJagAgw068NADDzrYAAM22nREJwMSaDBCCi/EMEMNM8TwQgojOGNpoRdGcMEHJqSgwgoqpGDCB8IQU+ghAijgQAUZdABCCCB0kEEFDuByKyIAHMDAAxJUYEEFEjzAwAGzHVuIAAYowMC2CnxibSMABCButd+WK0ggADs=" style="float:left;"/>

The web-site you are currently trying to access is under maintenance at this time.

We are sorry for any inconvenience this has caused.
   </body>

</html>

Error number: 0 Error message:

Error data: Array (

   [query] => PREFIX dct: <http://purl.org/dc/terms/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX dbp: <http://dbpedia.org/property/>
PREFIX dbo: <http://dbpedia.org/ontology/>
PREFIX dbr: <http://dbpedia.org/resource/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX dbrcat: <http://dbpedia.org/resource/Category:>
SELECT 
            #?id 
            # concat("", ?name, "") as ?Name
            ?name
            #concat("", ?h, "") as ?Homepage
            #concat("", ?c, "") as ?City
            #concat("[", ?thumbnail, "]") as ?Thumbnail
            #(group_concat(concat("",?p,""",?p,"" is not in the list (mobility, E-mobility, Crystalline modules, PV, ST, Absorbers, Law, Certification, Standards, Institution, ...) of allowed values for the "Product" property.");separator=",\n") as ?Product)
            #?s
            ?oc
            # concat("", ?o, "") as ?CompanyName
            ?o
    ?b
    #?c
  WHERE {
       VALUES ?s {dbrcat:Sparql}
       VALUES ?b { 1 1}
       OPTIONAL {?oc dct:subject ?s.
                 ?oc rdfs:label ?o .
                 FILTER (lang(?o) = 'en')
                }        
       OPTIONAL { ?s dbo:wikiPageID ?id}
       OPTIONAL { ?s dbo:abstract ?label}
       OPTIONAL { ?s dbp:name ?name }
       OPTIONAL { ?s dbp:commonName ?name }
       OPTIONAL { ?s foaf:name ?name }
       OPTIONAL { ?s rdfs:label ?name }
       OPTIONAL { ?s foaf:homepage ?h }
       OPTIONAL { ?s dbo:locationCity ?sc .
                  ?sc rdfs:label ?c .
                }
       OPTIONAL { ?s dbp:hqLocationCity ?sc .
                  ?sc rdfs:label ?c .
                 FILTER (lang(?c) = 'en')
                }
       OPTIONAL { ?s dbo:thumbnail ?thumbnail }
       OPTIONAL { ?s dbo:product ?sp . 
                  ?sp rdfs:label ?p .
                 FILTER (lang(?p) = 'en')
                  }
       FILTER (lang(?label) = 'en')
       FILTER (lang(?c) = 'en')
}
   [output] => xml
   [Accept] => application/sparql-results+xml

)



en:Sparql Sparql end point Sparql query Sparql aut Data Sheets

Example

Error query  : PREFIX dct: <http://purl.org/dc/terms/>

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX dbp: <http://dbpedia.org/property/>
PREFIX dbo: <http://dbpedia.org/ontology/>
PREFIX dbr: <http://dbpedia.org/resource/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX dbrcat: <http://dbpedia.org/resource/Category:>
SELECT 
            #?id 
            # concat("", ?name, "") as ?Name
            ?name
            #concat("", ?h, "") as ?Homepage
            #concat("", ?c, "") as ?City
            #concat("[", ?thumbnail, "]") as ?Thumbnail
            #(group_concat(concat("",?p,""",?p,"" is not in the list (mobility, E-mobility, Crystalline modules, PV, ST, Absorbers, Law, Certification, Standards, Institution, ...) of allowed values for the "Product" property.");separator=",\n") as ?Product)
            #?s
            ?oc
            # concat("", ?o, "") as ?CompanyName
            ?o
    ?b
    #?c
  WHERE {
       VALUES ?s {dbrcat:Sparql}
       VALUES ?b { 1 1}
       OPTIONAL {?oc dct:subject ?s.
                 ?oc rdfs:label ?o .
                 FILTER (lang(?o) = 'en')
                }        
       OPTIONAL { ?s dbo:wikiPageID ?id}
       OPTIONAL { ?s dbo:abstract ?label}
       OPTIONAL { ?s dbp:name ?name }
       OPTIONAL { ?s dbp:commonName ?name }
       OPTIONAL { ?s foaf:name ?name }
       OPTIONAL { ?s rdfs:label ?name }
       OPTIONAL { ?s foaf:homepage ?h }
       OPTIONAL { ?s dbo:locationCity ?sc .
                  ?sc rdfs:label ?c .
                }
       OPTIONAL { ?s dbp:hqLocationCity ?sc .
                  ?sc rdfs:label ?c .
                 FILTER (lang(?c) = 'en')
                }
       OPTIONAL { ?s dbo:thumbnail ?thumbnail }
       OPTIONAL { ?s dbo:product ?sp . 
                  ?sp rdfs:label ?p .
                 FILTER (lang(?p) = 'en')
                  }
       FILTER (lang(?label) = 'en')
       FILTER (lang(?c) = 'en')
}

Error endpoint: http://dbpedia.org/sparql Error http_response_code: 502 Error message: <html>

   <head>

<title>Web Site Under Maintenance</title>

   </head>
   <body>
<img src="data:image/gif;base64,R0lGODlhMgAyAOYAAO/v7+7u7u3t7f//AOzs7Ovr6+rq6unp6ejo6Ofn5+bm5uXl5eTk5ODg4N/f397e3t3d3dzc3Nvb29ra2tnZ2djY2NfX19PT09LS0tHR0dDQ0M/Pz87OzszMzMvLy8rKysnJycjIyMbGxsXFxcTExMPDw8LCwsHBwby8vLu7u7e3t7a2trW1tbS0tLOzs7KysqysrKqqqqioqKampqWlpaSkpKGhoZ2dnZycnJqampmZmZiYmJWVlZSUlJKSko6OjoyMjIuLi4qKioaGhoWFhYSEhIGBgYCAgH9/f319fXl5eXh4eHd3d3Z2dnJycm5ubm1tbWlpaWdnZ2VlZWNjY2JiYgAAAP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEHAFcALAAAAAAyADIAAAf/gFeCg4SFhoeIiYqLjI2Oj5CRkVaUVpKXiJWVCQkIBgKYkpQDpAOUEhENDAYAoY6jpaSUGxcUDQqgroqwsbJWJB4XEQwEuplWvb2UKCIaEgwFxoW8yaWUKiUbE9DSgtSmlcpWLCYc29HG35rqVi0n5tyu3+CayZQu7+eh8/Th9lb44KGbhKzauoL/AuqDNOpgQ3/VwCmM1wgWwn4RDQLMR3EXwo/rMibkOPBYLGQHTYkcCa+YyZP9Cl7EqLGFiQ0SFuSaNjPmR3EQxbEooSFCglY8/zlcWu+fDBUiLjQwYIjaQ4gzQ2q8ASPFBwoMdnrr6TNiU40+bLwwgcEB1aRA/89mZHdESI4YKTpISGAoATuUQTWetHJEyRAeM1SAoLAA6aAEEqxa5Cfr3xEoTIr0oLEihAUGjgUhgLCBl7/AFlX6OjLliWHEihmHvlKgwQUSk2VKNr2aShQnSezi1cu3UIAFFDyguOprsFxKR6pIebKESNq1bd8WMmBbhIqHvnSnBBddCpQmRn5w9QpW7CAACSJoKMGiYfjwIaFLP38ESI6nUU2ViAALSLCBCS1QZhZh+zWBRBA6zDBUUUcpQgADE3BwggsKilPeeQ/uMINNOOnESAEYasghWR42GOIME7l0YoobdqifeQ4GIeJEJc2YYY0s3giijjCSJAmKP65oGcQVOL7IIyZIqigZa1E80cQRRD4ZSpRAanLZE04sYQQQEWrpCpcJVlIYE0okQcQPEbojUDdRmsCCDDj4IMQQRQwhhA84yEDOnN3QhuEGJagAgw068NADDzrYAAM22nREJwMSaDBCCi/EMEMNM8TwQgojOGNpoRdGcMEHJqSgwgoqpGDCB8IQU+ghAijgQAUZdABCCCB0kEEFDuByKyIAHMDAAxJUYEEFEjzAwAGzHVuIAAYowMC2CnxibSMABCButd+WK0ggADs=" style="float:left;"/>

The web-site you are currently trying to access is under maintenance at this time.

We are sorry for any inconvenience this has caused.
   </body>

</html>

Error number: 0 Error message:

Error data: Array (

   [query] => PREFIX dct: <http://purl.org/dc/terms/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX dbp: <http://dbpedia.org/property/>
PREFIX dbo: <http://dbpedia.org/ontology/>
PREFIX dbr: <http://dbpedia.org/resource/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX dbrcat: <http://dbpedia.org/resource/Category:>
SELECT 
            #?id 
            # concat("", ?name, "") as ?Name
            ?name
            #concat("", ?h, "") as ?Homepage
            #concat("", ?c, "") as ?City
            #concat("[", ?thumbnail, "]") as ?Thumbnail
            #(group_concat(concat("",?p,""",?p,"" is not in the list (mobility, E-mobility, Crystalline modules, PV, ST, Absorbers, Law, Certification, Standards, Institution, ...) of allowed values for the "Product" property.");separator=",\n") as ?Product)
            #?s
            ?oc
            # concat("", ?o, "") as ?CompanyName
            ?o
    ?b
    #?c
  WHERE {
       VALUES ?s {dbrcat:Sparql}
       VALUES ?b { 1 1}
       OPTIONAL {?oc dct:subject ?s.
                 ?oc rdfs:label ?o .
                 FILTER (lang(?o) = 'en')
                }        
       OPTIONAL { ?s dbo:wikiPageID ?id}
       OPTIONAL { ?s dbo:abstract ?label}
       OPTIONAL { ?s dbp:name ?name }
       OPTIONAL { ?s dbp:commonName ?name }
       OPTIONAL { ?s foaf:name ?name }
       OPTIONAL { ?s rdfs:label ?name }
       OPTIONAL { ?s foaf:homepage ?h }
       OPTIONAL { ?s dbo:locationCity ?sc .
                  ?sc rdfs:label ?c .
                }
       OPTIONAL { ?s dbp:hqLocationCity ?sc .
                  ?sc rdfs:label ?c .
                 FILTER (lang(?c) = 'en')
                }
       OPTIONAL { ?s dbo:thumbnail ?thumbnail }
       OPTIONAL { ?s dbo:product ?sp . 
                  ?sp rdfs:label ?p .
                 FILTER (lang(?p) = 'en')
                  }
       FILTER (lang(?label) = 'en')
       FILTER (lang(?c) = 'en')
}
   [output] => xml
   [Accept] => application/sparql-results+xml

)