Skip to content

Commit

Permalink
Issue eclipse-rdf4j#780: Use default turtle parser settings
Browse files Browse the repository at this point in the history
Signed-off-by: James Leigh <james.leigh@ontotext.com>

Signed-off-by: Heshan Jayasinghe <shanujse@gmail.com>
  • Loading branch information
James Leigh committed Jun 1, 2017
1 parent 6bb36db commit 3661092
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
package org.eclipse.rdf4j.rio.turtle;

import org.eclipse.rdf4j.rio.RDFParser;
import org.eclipse.rdf4j.rio.helpers.BasicParserSettings;
import org.eclipse.rdf4j.rio.ntriples.NTriplesParser;

import junit.framework.Test;
Expand All @@ -28,16 +27,11 @@ public static Test suite()
@Override
protected RDFParser createTurtleParser() {
RDFParser result = new TurtleParser();
// localName_with_assigned_nfc_PN_CHARS_BASE_character_boundaries contains illegal trailing character
result.set(BasicParserSettings.VERIFY_URI_SYNTAX, false);
return result;
}

@Override
protected RDFParser createNTriplesParser() {
NTriplesParser result = new NTriplesParser();
// localName_with_assigned_nfc_PN_CHARS_BASE_character_boundaries contains illegal trailing character
result.set(BasicParserSettings.VERIFY_URI_SYNTAX, false);
return result;
return new NTriplesParser();
}
}

0 comments on commit 3661092

Please sign in to comment.