Anonymous

Changes

From KIproBatt Wiki
m
no edit summary
Line 79: Line 79:  
                     .then(response => response.json())
 
                     .then(response => response.json())
 
                     .then(data => {
 
                     .then(data => {
                     if (!nodeID){ //first query on root node
+
                     if (!nodeID && root){ //first query on root node
 
                     var rootNode = nodes.get(root);
 
                     var rootNode = nodes.get(root);
 
                     rootNode.url = data.query.results[root].fullurl;
 
                     rootNode.url = data.query.results[root].fullurl;
Line 746: Line 746:  
var subObject = "";
 
var subObject = "";
 
if (nodeID.split("#")[1]) {
 
if (nodeID.split("#")[1]) {
subObject = nodeID.split("#")[1];
+
subObject = nodeID.split("#")[1].replace(" ", "_");
 
}
 
}
 
//inverse properties are only available in html format
 
//inverse properties are only available in html format
Bots, bulkpusher, Bureaucrats, checkuser, filepusher, Interface administrators, oversight, pusher, rdfioadministrator, rdfiocurator, Administrators (Semantic MediaWiki), Curators (Semantic MediaWiki), Editors (Semantic MediaWiki), Administrators
5,444

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.