@@ -88,7 +88,7 @@ private Serializer() {
88
88
/**
89
89
* Creates a String representation of a given {@link Rule}.
90
90
*
91
- * @see <"https://github.com/knowsys/vlog4j/wiki"> for wiki .
91
+ * @see <a href= "https://github.com/knowsys/vlog4j/wiki">Rule syntax</a> .
92
92
* @param rule a {@link Rule}.
93
93
* @return String representation corresponding to a given {@link Rule}.
94
94
*
@@ -100,7 +100,7 @@ public static String getString(final Rule rule) {
100
100
/**
101
101
* Creates a String representation of a given {@link Conjunction}.
102
102
*
103
- * @see <"https://github.com/knowsys/vlog4j/wiki"> for wiki .
103
+ * @see <a href= "https://github.com/knowsys/vlog4j/wiki">Rule syntax</a> .
104
104
* @param conjunction a {@link Conjunction}
105
105
* @return String representation corresponding to a given {@link Conjunction}.
106
106
*/
@@ -121,7 +121,7 @@ public static String getString(final Conjunction<? extends Literal> conjunction)
121
121
/**
122
122
* Creates a String representation of a given {@link Literal}.
123
123
*
124
- * @see <"https://github.com/knowsys/vlog4j/wiki"> for wiki .
124
+ * @see <a href= "https://github.com/knowsys/vlog4j/wiki">Rule syntax</a> .
125
125
* @param literal a {@link Literal}
126
126
* @return String representation corresponding to a given {@link Literal}.
127
127
*/
@@ -148,7 +148,7 @@ public static String getString(final Literal literal) {
148
148
/**
149
149
* Creates a String representation of a given {@link Fact}.
150
150
*
151
- * @see <"https://github.com/knowsys/vlog4j/wiki"> for wiki .
151
+ * @see <a href= "https://github.com/knowsys/vlog4j/wiki">Rule syntax</a> .
152
152
* @param fact a {@link Fact}
153
153
* @return String representation corresponding to a given {@link Fact}.
154
154
*/
@@ -159,7 +159,7 @@ public static String getFactString(final Fact fact) {
159
159
/**
160
160
* Creates a String representation of a given {@link Constant}.
161
161
*
162
- * @see <"https://github.com/knowsys/vlog4j/wiki"> for wiki .
162
+ * @see <a href= "https://github.com/knowsys/vlog4j/wiki">Rule syntax</a> .
163
163
* @param constant a {@link Constant}
164
164
* @return String representation corresponding to a given {@link Constant}.
165
165
*/
@@ -171,7 +171,7 @@ public static String getString(final AbstractConstant constant) {
171
171
* Creates a String representation corresponding to the name of a given
172
172
* {@link LanguageStringConstant}.
173
173
*
174
- * @see <"https://github.com/knowsys/vlog4j/wiki"> for wiki .
174
+ * @see <a href= "https://github.com/knowsys/vlog4j/wiki">Rule syntax</a> .
175
175
* @param languageStringConstant a {@link LanguageStringConstant}
176
176
* @return String representation corresponding to the name of a given
177
177
* {@link LanguageStringConstant}.
@@ -184,7 +184,7 @@ public static String getConstantName(final LanguageStringConstant languageString
184
184
* Creates a String representation corresponding to the name of a given
185
185
* {@link DatatypeConstant} without an IRI.
186
186
*
187
- * @see <"https://github.com/knowsys/vlog4j/wiki"> for wiki .
187
+ * @see <a href= "https://github.com/knowsys/vlog4j/wiki">Rule syntax</a> .
188
188
* @param datatypeConstant a {@link DatatypeConstant}
189
189
* @return String representation corresponding to a given
190
190
* {@link DatatypeConstant}.
@@ -207,7 +207,7 @@ public static String getString(final DatatypeConstant datatypeConstant) {
207
207
* Creates a String representation corresponding to the name of a given
208
208
* {@link DatatypeConstant} including an IRI.
209
209
*
210
- * @see <"https://github.com/knowsys/vlog4j/wiki"> for wiki .
210
+ * @see <a href= "https://github.com/knowsys/vlog4j/wiki">Rule syntax</a> .
211
211
* @param datatypeConstant a {@link DatatypeConstant}
212
212
* @return String representation corresponding to a given
213
213
* {@link DatatypeConstant}.
@@ -220,7 +220,7 @@ public static String getConstantName(final DatatypeConstant datatypeConstant) {
220
220
/**
221
221
* Creates a String representation of a given {@link ExistentialVariable}.
222
222
*
223
- * @see <"https://github.com/knowsys/vlog4j/wiki"> for wiki .
223
+ * @see <a href= "https://github.com/knowsys/vlog4j/wiki">Rule syntax</a> .
224
224
* @param existentialVariable a {@link ExistentialVariable}
225
225
* @return String representation corresponding to a given
226
226
* {@link ExistentialVariable}.
@@ -232,7 +232,7 @@ public static String getString(final ExistentialVariable existentialVariable) {
232
232
/**
233
233
* Creates a String representation of a given {@link UniversalVariable}.
234
234
*
235
- * @see <"https://github.com/knowsys/vlog4j/wiki"> for wiki .
235
+ * @see <a href= "https://github.com/knowsys/vlog4j/wiki">Rule syntax</a> .
236
236
* @param universalVariable a {@link UniversalVariable}
237
237
* @return String representation corresponding to a given
238
238
* {@link UniversalVariable}.
@@ -244,7 +244,7 @@ public static String getString(final UniversalVariable universalVariable) {
244
244
/**
245
245
* Creates a String representation of a given {@link NamedNull}.
246
246
*
247
- * @see <"https://github.com/knowsys/vlog4j/wiki"> for wiki .
247
+ * @see <a href= "https://github.com/knowsys/vlog4j/wiki">Rule syntax</a> .
248
248
* @param namedNull a {@link NamedNull}
249
249
* @return String representation corresponding to a given {@link NamedNull}.
250
250
*/
@@ -255,7 +255,7 @@ public static String getString(final NamedNull namedNull) {
255
255
/**
256
256
* Creates a String representation of a given {@link Predicate}.
257
257
*
258
- * @see <"https://github.com/knowsys/vlog4j/wiki"> for wiki .
258
+ * @see <a href= "https://github.com/knowsys/vlog4j/wiki">Rule syntax</a> .
259
259
* @param predicate a {@link Predicate}
260
260
* @return String representation corresponding to a given {@link Predicate}.
261
261
*/
@@ -266,7 +266,7 @@ public static String getString(final Predicate predicate) {
266
266
/**
267
267
* Creates a String representation of a given {@link DataSourceDeclaration}.
268
268
*
269
- * @see <"https://github.com/knowsys/vlog4j/wiki"> for wiki .
269
+ * @see <a href= "https://github.com/knowsys/vlog4j/wiki">Rule syntax</a> .
270
270
* @param dataSourceDeclaration a {@link DataSourceDeclaration}
271
271
* @return String representation corresponding to a given
272
272
* {@link DataSourceDeclaration}.
@@ -279,7 +279,7 @@ public static String getString(final DataSourceDeclaration dataSourceDeclaration
279
279
/**
280
280
* Creates a String representation of a given {@link CsvFileDataSource}.
281
281
*
282
- * @see <"https://github.com/knowsys/vlog4j/wiki">.
282
+ * @see <a href= "https://github.com/knowsys/vlog4j/wiki">Rule syntax</a> . .
283
283
*
284
284
* @param csvFileDataSource
285
285
* @return String representation corresponding to a given
@@ -292,7 +292,7 @@ public static String getString(final CsvFileDataSource csvFileDataSource) {
292
292
/**
293
293
* Creates a String representation of a given {@link RdfFileDataSource}.
294
294
*
295
- * @see <"https://github.com/knowsys/vlog4j/wiki">.
295
+ * @see <a href= "https://github.com/knowsys/vlog4j/wiki">Rule syntax</a> . .
296
296
*
297
297
*
298
298
* @param rdfFileDataSource
@@ -307,7 +307,7 @@ public static String getString(final RdfFileDataSource rdfFileDataSource) {
307
307
* Creates a String representation of a given
308
308
* {@link SparqlQueryResultDataSource}.
309
309
*
310
- * @see <"https://github.com/knowsys/vlog4j/wiki">.
310
+ * @see <a href= "https://github.com/knowsys/vlog4j/wiki">Rule syntax</a> .
311
311
*
312
312
*
313
313
* @param dataSource
@@ -335,14 +335,8 @@ private static String getIRIString(final String string) {
335
335
}
336
336
337
337
private static String escape (final String string ) {
338
- return string
339
- .replace ("\\ " , "\\ \\ " )
340
- .replace ("\" " , "\\ \" " )
341
- .replace ("\t " , "\\ t" )
342
- .replace ("\b " , "\\ b" )
343
- .replace ("\n " , "\\ n" )
344
- .replace ("\r " , "\\ r" )
345
- .replace ("\f " , "\\ f" );
338
+ return string .replace ("\\ " , "\\ \\ " ).replace ("\" " , "\\ \" " ).replace ("\t " , "\\ t" ).replace ("\b " , "\\ b" )
339
+ .replace ("\n " , "\\ n" ).replace ("\r " , "\\ r" ).replace ("\f " , "\\ f" );
346
340
// don't touch single quotes here since we only construct double-quoted strings
347
341
}
348
342
0 commit comments