Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 39675f85 authored by Jérôme Euzenat's avatar Jérôme Euzenat
Browse files

- fixed queryTranslations error due to fix in r1904)

parent 9a5be4ec
No related branches found
No related tags found
No related merge requests found
......@@ -91,11 +91,11 @@ public class BasicAlignmentTest {
assertNotNull( result, "URIAlignment(result) was null" );
String query = "PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .\nPREFIX onto1: <http://www.example.org/ontology1#> .\n\nSELECT *\nFROM XXX\nWHERE {\n ?X rdf:type <http://www.example.org/ontology1#reviewedarticle>.\n ?X rdf:type onto1:reviewedarticle .\n }";
String transf = result.rewriteQuery( query );
assertEquals( transf.length(), 280 );
assertEquals( transf.length(), 278 );
Properties prefix = new Properties();
prefix.setProperty( "onto2", "http://www.example.org/ontology2#" );
transf = result.rewriteQuery( query, prefix );
assertEquals( transf.length(), 274 );
assertEquals( transf.length(), 271 );
transf = result.translateMessage( query );
assertEquals( transf.length(), 249 );
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment