Skip to content

Commit

Permalink
Add datatype for int, decimal, double and boolean on serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
erikap committed Nov 20, 2018
1 parent 39e00b3 commit 80db0bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rdfa-graph.js
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ export class RDFaPredicate {
this.objects[i].type=="http://www.w3.org/2001/XMLSchema#decimal" ||
this.objects[i].type=="http://www.w3.org/2001/XMLSchema#double" ||
this.objects[i].type=="http://www.w3.org/2001/XMLSchema#boolean") {
s += this.objects[i].value;
s += '"' + this.objects[i].value + '"' + "^^<" + this.objects[i].type + ">";
} else if (this.objects[i].type=="http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral") {
var serializer = new XMLSerializer();
var value = "";
Expand Down

0 comments on commit 80db0bd

Please sign in to comment.