Skip to content

Commit

Permalink
fixed example query
Browse files Browse the repository at this point in the history
  • Loading branch information
langens-jonathan committed Sep 4, 2016
1 parent b2d6a4f commit ed1050b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ insert
<http://mu.semte.ch/sessions/0c2e05a5-0b52-419c-a99a-394c30979706> <http://mu.semte.ch/vocabularies/session/account> <http://mu.semte.ch/users/jonathan>;
<http://mu.semte.ch/vocabularies/core/uuid> "SESSIONJONATHAN".
<http://mu.semte.ch/graphs/graph1> <mu:uuid> "GRAPH1";
<foaf:name> "http://mu.semte.ch/application";
<mu:graphType> "hive";
a <mu:Graph>.
<http://mu.semte.ch/graphs/personalGraph1> <mu:uuid> "PERSONALGRAPH1";
<foaf:name> "http://langens.jonathan/Personal-Graph-1";
<mu:graphType> "personal";
a <mu:Graph>.
<http://mu.semte.ch/graphs/graph1> mu:uuid "GRAPH1";
foaf:name "http://mu.semte.ch/application";
graphs:graphType "hive";
a graphs:Graph.
<http://mu.semte.ch/graphs/personalGraph1> mu:uuid "PERSONALGRAPH1";
foaf:name "http://langens.jonathan/Personal-Graph-1";
graphs:graphType "personal";
a graphs:Graph.
}
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -379,8 +379,11 @@ private String getUserUUIDFromSession(String sessionID)
"?user-uri <http://mu.semte.ch/vocabularies/core/uuid> ?user-uuid .\n" +
"}";

System.out.println(getuseruuid);

try {
String jsonString = this.queryService.sparqlService.getSPARQLResponse(this.localSPARQLURL + "?query=" + URLEncoder.encode(getuseruuid, "UTF-8"));
System.out.println(jsonString);
ObjectMapper mapper = new ObjectMapper();
Map<String, Object> jsonMap = mapper.readValue(jsonString, Map.class);
Map<String, ScopeNode> nodeMap = new HashMap<String, ScopeNode>();
Expand Down
Binary file modified target/SCOPES-ENDPOINT-1.0-SNAPSHOT.war
Binary file not shown.

0 comments on commit ed1050b

Please sign in to comment.