You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Represents a statement in the N-Quads format (see: http://sw.deri.org/2008/07/n-quads/)
10
10
*/
11
+
//TODO write out equivalent properties
11
12
classQuad( vallanguage:Language,
12
13
valdataset:Dataset,
13
14
valsubject:String,
@@ -66,13 +67,23 @@ class Quad( val language : Language,
66
67
{
67
68
sb append '"'
68
69
escapeString(sb, value) //sb append value //#int
69
-
sb append "\"^^<" append datatype.uri append "> "
70
+
sb append "\"^^<"
71
+
escapeString(sb, datatype.uri)
72
+
sb append "> "
70
73
}
71
74
}
72
75
else
73
76
{
74
77
sb append '<'
75
-
sb append value //this must not be escaped, it is a URI/IRI //TODO URIs should be escaped if they contain unicode chars! (for example homepages) -> Max: maybe we should have DBpediaURI and OtherURI as well as Literal objects?
78
+
79
+
//HACK
80
+
//TODO find a good solution for this
81
+
//maybe we should have DBpediaURI and OtherURI as well as Literal objects?
0 commit comments