Seems like there I found an error in RdfParser.php. Consider the=20
following RDF:
<?xml version=3D"1.0" encoding=3D"UTF-8" ?>
<rdf:RDF
xmlns=3D"http://powl.sf.net/SysOnt/0.1#"
xmlns:rdf=3D"http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:xml=3D"http://www.w3.org/XML/1998/namespace"
xmlns:rdfs=3D"http://www.w3.org/2000/01/rdf-schema#">
<Label ID=3D"Label230">
<rdfs:label xml:lang=3D"pl"=20
rdf:datatype=3D"http://www.w3.org/2001/XMLSchema#string">Text</rdfs:label=
>
</Label>
</rdf:RDF>
When parsing this snippet the xml:language attribute is then not taken=20
into account since in api/syntax/RdfParser.php in function=20
add_statement_to_model() we have:
if ($datatype !=3D '') {
$objobj->setDatatype($datatype);
} =20
else if ($xml_lang !=3D'') {
$objobj->setLanguage($xml_lang);
} =20
the "else" should be removed! So, please change Line 2223 from:
elseif ($xml_lang !=3D'') {
into
if ($xml_lang !=3D'') {
and everything should be fine. I'm wondering that nobody had the problem=20
before...
Cheers,
S=F6ren
--------------------------------------------------------------
S=F6ren Auer - University of Leipzig - Dept. of Computer Science
Room 5-52, Augustusplatz 10, 04109 Leipzig, +49 (341) 97-32323
|