diff --git a/api/src/test/java/edu/cornell/mannlib/vitro/webapp/controller/api/sparqlquery/SparqlQueryApiExecutorTest.java b/api/src/test/java/edu/cornell/mannlib/vitro/webapp/controller/api/sparqlquery/SparqlQueryApiExecutorTest.java index 06d622597..7938cf0bd 100644 --- a/api/src/test/java/edu/cornell/mannlib/vitro/webapp/controller/api/sparqlquery/SparqlQueryApiExecutorTest.java +++ b/api/src/test/java/edu/cornell/mannlib/vitro/webapp/controller/api/sparqlquery/SparqlQueryApiExecutorTest.java @@ -168,10 +168,20 @@ public class SparqlQueryApiExecutorTest extends AbstractTestClass { + " \n" + " \n" // + "\n"; - private static final String CONSTRUCT_RESULT_JSONLD = "[" - + "{\"@id\":\"http://here.edu/object\"}," - + "{\"@id\":\"http://here.edu/subject\",\"http://here.edu/predicate\":[{\"@id\":\"http://here.edu/object\"}]}" - + "]"; + private static final String CONSTRUCT_RESULT_JSONLD = "{\n" + + " \"@id\" : \"http://here.edu/subject\",\n" + + " \"predicate\" : \"http://here.edu/object\",\n" + + " \"@context\" : {\n" + + " \"predicate\" : {\n" + + " \"@id\" : \"http://here.edu/predicate\",\n" + + " \"@type\" : \"@id\"\n" + + " },\n" + + " \"rdf\" : \"http://www.w3.org/1999/02/22-rdf-syntax-ns#\",\n" + + " \"owl\" : \"http://www.w3.org/2002/07/owl#\",\n" + + " \"xsd\" : \"http://www.w3.org/2001/XMLSchema#\",\n" + + " \"rdfs\" : \"http://www.w3.org/2000/01/rdf-schema#\"\n" + + " }\n" + + "}\n"; private static final String DESCRIBE_ALL_QUERY = "DESCRIBE "; private static final String DESCRIBE_RESULT_TEXT = " " @@ -202,10 +212,20 @@ public class SparqlQueryApiExecutorTest extends AbstractTestClass { + "\n" // + " \n" // + " .\n"; - private static final String DESCRIBE_RESULT_JSONLD = "[" - + "{\"@id\":\"http://here.edu/object\"}," - + "{\"@id\":\"http://here.edu/subject\",\"http://here.edu/predicate\":[{\"@id\":\"http://here.edu/object\"}]}" - + "]"; + private static final String DESCRIBE_RESULT_JSONLD = "{\n" + + " \"@id\" : \"http://here.edu/subject\",\n" + + " \"predicate\" : \"http://here.edu/object\",\n" + + " \"@context\" : {\n" + + " \"predicate\" : {\n" + + " \"@id\" : \"http://here.edu/predicate\",\n" + + " \"@type\" : \"@id\"\n" + + " },\n" + + " \"rdf\" : \"http://www.w3.org/1999/02/22-rdf-syntax-ns#\",\n" + + " \"owl\" : \"http://www.w3.org/2002/07/owl#\",\n" + + " \"xsd\" : \"http://www.w3.org/2001/XMLSchema#\",\n" + + " \"rdfs\" : \"http://www.w3.org/2000/01/rdf-schema#\"\n" + + " }\n" + + "}\n"; private OntModel model; private RDFService rdfService;