2

how to make a query SPARQL multiline in javascript? What is the correct syntax?

var query = "
    PREFIX dcterms: <http://purl.org/dc/terms/>
    PREFIX fabio: <http://purl.org/spar/fabio/>
    PREFIX frbr: <http://purl.org/vocab/frbr/core#>

    SELECT DISTINCT ?x
    WHERE {
       ?x a fabio:Item.
    }";
Federico Govoni
  • 148
  • 4
  • 9
  • Possible duplicate of [Creating multiline strings in JavaScript](http://stackoverflow.com/questions/805107/creating-multiline-strings-in-javascript) – Jeen Broekstra Dec 04 '15 at 20:30

1 Answers1

3

Your options are:

lorefnon
  • 12,875
  • 6
  • 61
  • 93