Hello,
Ivan Mikhailov wrote:
> Hello Jens,
>
> First of all, try to repeat same query via ISQL. After that you will
> know whether stored data are incorrect or the web service endpoint runs
> wrong way. Depending on the case, the diagnostics will be totally
> different. In case of incorrect data in RDF storage we will try to
> understand the error in data loading side, in case of web service we
> will try to find a way of reproducing it locally and fix.
We have the encoding problem again (and it is urgent now) after we
reloaded data sets and loaded some new ones. virtuoso.ini hasn't
changed, so it's a bit frustrating to see them appear again.
For instance, the following query (abstract for resource "Karlsruhe"):
SELECT ?o FROM <http://dbpedia.org> WHERE {
<http://dbpedia.org/resource/Karlsruhe>
<http://dbpedia.org/property/abstract> ?o }
gets the attached results via official DBpedia SPARQL endpoint
(karlsruhe_dbpedia_org.xml), our local endpoint (karlsruhe.xml) and the
ISQL command line (karlsruhe_isql.txt). The official endpoint and ISQL
are encoding correctly.
We still have the charset UTF-8 directive in virtuoso.ini, the reloaded
the long abstract data set (it didn't change) and other output formats
(HTML, JSON) produce correct encodings. Out virtuoso version is 5.0.8.
Kind regards,
Jens
--
Dipl. Inf. Jens Lehmann
Department of Computer Science, University of Leipzig
Homepage: http://www.jens-lehmann.org
GPG Key: http://jens-lehmann.org/jens_lehmann.asc
<?xml version="1.0" ?>
<sparql xmlns="http://www.w3.org/2005/sparql-results#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.w3.org/2001/sw/DataAccess/rf1/result2.xsd">
<head>
<variable name="o"/>
</head>
<results distinct="false" ordered="true">
<result>
<binding name="o"><literal xml:lang="en">Karlsruhe (; population 285,812 in 2006) is a city in the south west of Germany, in the Bundesland Baden-Württemberg, located near the French-German border.
Founded in 1715 as Karlsruhe Palace, the surrounding town became the seat of two of the highest courts in Germany, the Federal Constitutional Court of Germany whose decisions have the force of a law, and the Federal Court of Justice of Germany, the highest court of appeals in matters of civil law and criminal law. It therefore considers itself the home of justice in Germany, a role taken over from Leipzig after 1933.</literal></binding>
</result>
<result>
<binding name="o"><literal xml:lang="es">Karlsruhe es una ciudad y Distrito Urbano en el suroeste de Alemania, en el Bundesland de Baden-Wurtemberg cerca de la frontera de Alemania con Francia. Karlsruhe también es la capital del Distrito Rural de Karlsruhe, aunque no forma parte de él. El Tribunal Constitucional Federal Alemán (Bundesverfassungsgericht) con sede en Karlsruhe.</literal></binding>
</result>
<result>
<binding name="o"><literal xml:lang="de">Karlsruhe ist ein Stadtkreis in Baden-Württemberg, Sitz des Regierungsbezirks Karlsruhe, der Region Mittlerer Oberrhein und des Landkreises Karlsruhe. Historisch ist Karlsruhe Haupt- und Residenzstadt des ehemaligen Landes Baden. Die Stadt wird im Norden, Osten und Süden vom Landkreis Karlsruhe und im Westen vom Rhein begrenzt, welcher hier die Grenze Baden-Württembergs mit Rheinland-Pfalz bildet. Karlsruhe ist nach Stuttgart (etwa 75&nbsp;km südöstlich) und Mannheim (etwa 60&nbsp;km nördlich) die drittgröÃte Stadt des Landes Baden-Württemberg und hat eine Fläche von etwa 173&nbsp;km². Seit 1950 ist Karlsruhe Sitz des Bundesgerichtshofs und seit 1951 des Bundesverfassungsgerichts, weshalb die Stadt den Beinamen Residenz des Rechts trägt.</literal></binding>
</result>
<result>
<binding name="o"><literal xml:lang="fi">Karlsruhe on kaupunki Saksassa Baden-Württembergin osavaltiossa lähellä Ranskan rajaa, ja siellä on 285 812 asukasta. Kaupunki perustettiin 1715, eli se on saksalaiseksi kaupungiksi hyvin nuori.</literal></binding>
</result>
<result>
<binding name="o"><literal xml:lang="fr">Karlsruhe est une ville d'Allemagne, située dans le Land de Bade-Wurtemberg. Elle est le siège de la Cour constitutionnelle allemande (Bundesverfassungsgericht) et du Tribunal fédéral de justice (Bundesgerichtshofs).
Fondée en 1715 par le margrave Charles-Guillaume de Bade-Durlach, Karlsruhe est l'ancienne capitale du Grand-duché de Bade.
La ville a été détruite à 80 % durant la Seconde Guerre mondiale. La plupart des bâtiments sont donc récents ou reconstruits, y compris le château, après la guerre. Cette reconstruction exemplaire a permis une structure urbaine très aérée, qui respecte le plan initial de la ville classique, avec de larges voies rectilignes, les axes partant du château sont obliques suivant le plan de ce bâtiment dont les ailes sont en éventail par rapport au corps central. Si l'on suit une de ces voies on s'écarte très vite des rues adjacentes au début.
Lâancienne orthographe française est Carlsruhe.</literal></binding>
</result>
<result>
<binding name="o"><literal xml:lang="it">Karlsruhe è la terza città più grande del Land tedesco del Baden-Württemberg (dopo Stoccarda e Mannheim). Fino al 1945 è stata la capitale del vecchio Land del Baden.</literal></binding>
</result>
<result>
<binding name="o"><literal xml:lang="ja">å
ä¸å¿è¡ã«ãããã©ãããï¼ã«ã¼ã«ã»ã´ã£ã«ãã«ã ãæ°¸ç ãã¦ããï¼
ã«ã¼ã«ã¹ã«ã¼ã¨ï¼Karlsruheï¼ã¯ããã¤ãé£é¦å
±åå½ã®é½å¸ããã¼ãã³ï¼ã´ã¥ã«ãã³ãã«ã¯å·ã«å±ããã人å£ã¯ç´28ä¸äººã§ãåå·ã§ã¯ã·ã¥ãã¥ããã¬ã«ãããã³ãã¤ã ã«ç¶ã第ä¸ã®è¦æ¨¡ã®é½å¸ã§ãããé£é¦æ²æ³è£å¤æï¼Bundesverfassungsgerichtï¼ ãé£é¦è£å¤æï¼Bundesgerichtshofï¼ã®æå¨å°ã§ããã</literal></binding>
</result>
<result>
<binding name="o"><literal xml:lang="nl">Karlsruhe is een stad in de Duitse deelstaat Baden-Württemberg.
Karlsruhe is na Stuttgart (circa 65 km ten oosten van Karlsruhe) en Mannheim (circa 55 km ten noorden van Karlsruhe) de op twee na grootste stad in Baden-Württemberg en heeft een oppervlakte van circa 173 km². Karlsruhe telde op 30 juni 2006 286.331 inwoners. Sinds 1950 zetelt in Karlsruhe het zogenaamde Bundesgerichtshof en sinds 1951 het Bundesverfassungsgericht waardoor de stad de bijnaam Residentie van het recht kreeg.</literal></binding>
</result>
<result>
<binding name="o"><literal xml:lang="no">:Annen betydning: Den tyske krysseren «Karlsruhe» med navn etter byen.
Karlsruhe er en by i den tyske delstaten Baden-Württemberg, i det sydvestlige Tyskland. Den ligger ved Rhinen, like i nærheten av grensen til Frankrike, ca. 60 km. syd for Ludwigshafen og ca. 80 km. nordøst for Stuttgart. Karlsruhe har ca. 280&nbsp;000 innbyggere (2002).
Byen ble grunnlagt 17. juni 1715 gjennom byggingen av slottet Karlsruhe. Etter 1806 var Karlsruhe residensby for storhertugene av Baden og fra 1919 hovedstad i Fristaten Baden. Noen år etter annen verdenskrig ble statene Baden og Württemberg slått sammen, og Württembergs hovedstad Stuttgart ble hovedstad for den nye staten.
Den tyske forfatningsdomstolen holder til i Karlsruhe. Det finnes et universitet og seks faghøyskoler. Byens borgermester er Heinz Fenrich (CDU).</literal></binding>
</result>
<result>
<binding name="o"><literal xml:lang="pl">Karlsruhe â miasto w poÅudniowo-zachodnich Niemczech (Badenia-Wirtembergia),
na Nizinie GórnoreÅskiej, nad rzekami Alb i Pfinz (dopÅywy Renu).
WysokoÅÄ n.p.m. wynosi: 115 m.</literal></binding>
</result>
<result>
<binding name="o"><literal xml:lang="pt">Karlsruhe é uma cidade independente (kreisfreie Stadt) da Alemanha, capital do distrito homónimo e da região administrativa de Karlsruhe, estado de Baden-Württemberg.
A cidade destaca-se pelo seu formato em "leque". Karlsruhe abriga a famosa primeira universidade tecnológica da Alemanha. Cerca de 38&nbsp;940 estrangeiros vivem na cidade (2004).</literal></binding>
</result>
<result>
<binding name="o"><literal xml:lang="ru">{
ÐаÌÑлÑÑÑÑ â гоÑод в ÐеÑмании, в земле Ðаден-ÐÑÑÑембеÑг, ÑаÑположеннÑй в окÑеÑÑноÑÑÑÑ
Ñеки Рейн недалеко Ð¾Ñ ÑÑанÑÑзÑко-геÑманÑкой гÑаниÑÑ.
ÐаÑлÑÑÑÑ ÑвлÑеÑÑÑ ÑÑеÑÑим по ÑиÑленноÑÑи наÑÐµÐ»ÐµÐ½Ð¸Ñ (285&nbsp;263 Ñеловек на 31 декабÑÑ 2005) гоÑодом земли Ðаден-ÐÑÑÑембеÑг и 21-м в ÐеÑмании.
Р«ÑезиденÑии пÑава», как иногда назÑваÑÑ ÐаÑлÑÑÑÑ, ÑаÑÐ¿Ð¾Ð»Ð¾Ð¶ÐµÐ½Ñ Ð¤ÐµÐ´ÐµÑалÑнÑй конÑÑиÑÑÑионнÑй ÑÑд, ФедеÑалÑнÑй ÑÑд и ÐенеÑалÑÐ½Ð°Ñ Ð¿ÑокÑÑаÑÑÑа ÐеÑмании, а Ñакже многоÑиÑленнÑе ÑедеÑалÑнÑе и земелÑнÑе ведомÑÑва. РгоÑоде пÑÐ¾Ð¶Ð¸Ð²Ð°ÐµÑ Ð±Ð¾Ð»ÑÑое колиÑеÑÑво Ñиновников и гоÑÑлÑжаÑиÑ
.
Ðамок ÐаÑлÑÑÑÑ</literal></binding>
</result>
<result>
<binding name="o"><literal xml:lang="sv">Karlsruhe är en stad i den tyska delstaten Baden-Württemberg. Staden ligger vid Rhen omkring 60 km söder om Mannheim och Ludwigshafen och cirka 80 km nordost om Stuttgart. Karlsruhe har omkring 285 000 invånare (31.12.2006).</literal></binding>
</result>
<result>
<binding name="o"><literal xml:lang="zh">å¡å°æ¯é²åï¼Karlsruheï¼ï¼æ¯å¾·å½å·´ç»-符è
¾å ¡å·çåå¸ãå¡å°æ¯é²åæ¯ç»§æ¯å¾å ç¹åæ¼æµ·å§çå·´ç»-符è
¾å ¡å·ç¬¬ä¸å¤§åå¸ï¼é¢ç§¯çº¦173å¹³æ¹åç±³ãå¡å°æ¯é²åæ¯å¾·å½è馿髿³é¢åå¾·å½èé¦å®ªæ³æ³é¢çæå¨å°ãå¨å·´ç»å·ä¸ç¬¦è
¾å ¡å·å°æªå并为巴ç»-符è
¾å ¡å·åï¼å¡å°æ¯é²åæ¾æ¯å·´ç»å·çé¦åºã</literal></binding>
</result>
</results>
</sparql>
<sparql xmlns="http://www.w3.org/2005/sparql-results#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.w3.org/2001/sw/DataAccess/rf1/result2.xsd">
<head>
<variable name="o"/>
</head>
<results distinct="false" ordered="true">
<result>
<binding name="o"><literal xml:lang="en">Karlsruhe (; population 285,812 in 2006) is a city in the south west of Germany, in the Bundesland Baden-Württemberg, located near the French-German border.
Founded in 1715 as Karlsruhe Palace, the surrounding town became the seat of two of the highest courts in Germany, the Federal Constitutional Court of Germany whose decisions have the force of a law, and the Federal Court of Justice of Germany, the highest court of appeals in matters of civil law and criminal law. It therefore considers itself the home of justice in Germany, a role taken over from Leipzig after 1933."</literal></binding>
</result>
</results>
</sparql>
OpenLink Interactive SQL (Virtuoso), version 0.9849b.
Type HELP; for help and EXIT; to exit.
SQL> Connected to OpenLink Virtuoso
Driver: 05.00.3018 OpenLink Virtuoso ODBC Driver
o
VARCHAR
_______________________________________________________________________________
Karlsruhe (; population 285,812 in 2006) is a city in the south west of
Germany, in the Bundesland Baden-Württemberg, located near the French-German
border.
Founded in 1715 as Karlsruhe Palace, the surrounding town became the seat of
two of the highest courts in Germany, the Federal Constitutional Court of
Germany whose decisions have the force of a law, and the Federal Court of
Justice of Germany, the highest court of appeals in matters of civil law and
criminal law. It therefore considers itself the home of justice in Germany, a
role taken over from Leipzig after 1933."
1 Rows. -- 1 msec.
SQL>