File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/org/linkeddatafragments/servlet Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 37
37
*/
38
38
public class BasicLdfServlet extends HttpServlet {
39
39
private final static long serialVersionUID = 1L ;
40
- private final static Pattern STRINGPATTERN = Pattern .compile ("^\" (.*)\" (?:@(.*)|\\ ^\\ ^<(. *)>)?$" );
40
+ private final static Pattern STRINGPATTERN = Pattern .compile ("^\" (.*)\" (?:@(.*)|\\ ^\\ ^<?([^<>] *)>? )?$" );
41
41
private final static TypeMapper types = TypeMapper .getInstance ();
42
42
private final static long TRIPLESPERPAGE = 100 ;
43
43
@@ -213,7 +213,7 @@ private RDFNode parseAsNode(String value) {
213
213
return ResourceFactory .createTypedLiteral (body , types .getSafeTypeByName (type ));
214
214
return ResourceFactory .createPlainLiteral (body );
215
215
}
216
- return null ;
216
+ return INVALID_URI ;
217
217
// assume it's a URI without angular brackets
218
218
default :
219
219
return ResourceFactory .createResource (value );
You can’t perform that action at this time.
0 commit comments