rename dependencies of knowledge web var
All checks were successful
studiorailgun/trpg/pipeline/head This commit looks good
All checks were successful
studiorailgun/trpg/pipeline/head This commit looks good
This commit is contained in:
parent
92c26b4f6c
commit
f3f9711340
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"tag": "linguistics",
|
"tag": "linguistics",
|
||||||
"children" : [
|
"dependencies" : [
|
||||||
"./data/webs/linguistics/name.json"
|
"./data/webs/linguistics/name.json"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"tag": "philosophy",
|
"tag": "philosophy",
|
||||||
"children" : [
|
"dependencies" : [
|
||||||
"./data/webs/philosophy/concept.json"
|
"./data/webs/philosophy/concept.json"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -52,7 +52,7 @@
|
|||||||
"child" : 9
|
"child" : 9
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"children" : [
|
"dependencies" : [
|
||||||
"./data/webs/root.json"
|
"./data/webs/root.json"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"tag" : "convo1",
|
"tag" : "convo1",
|
||||||
"children" : [
|
"dependencies" : [
|
||||||
"./data/webs/physical-instances/characters/bert-self.json"
|
"./data/webs/physical-instances/characters/bert-self.json"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -15,10 +15,14 @@
|
|||||||
"id" : 0,
|
"id" : 0,
|
||||||
"name" : "instanceOf",
|
"name" : "instanceOf",
|
||||||
"parent" : 0,
|
"parent" : 0,
|
||||||
|
"parentWeb" : "qualia",
|
||||||
|
"child" : 0
|
||||||
|
},
|
||||||
|
"1" : {
|
||||||
|
"id" : 1,
|
||||||
|
"name" : "instanceOf",
|
||||||
|
"parent" : 0,
|
||||||
"child" : 1
|
"child" : 1
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
"crossRelations" : [
|
|
||||||
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
@ -6,19 +6,10 @@
|
|||||||
"name" : "qualia"
|
"name" : "qualia"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"relations" : {
|
|
||||||
"0" : {
|
|
||||||
"id" : 0,
|
|
||||||
"name" : "instanceOf",
|
|
||||||
"parent" : 0,
|
|
||||||
"child" : 0,
|
|
||||||
"childWeb" : "color"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"anchors" : {
|
"anchors" : {
|
||||||
"qualia" : 0
|
"qualia" : 0
|
||||||
},
|
},
|
||||||
"children" : [
|
"dependencies" : [
|
||||||
"./data/webs/qualia/color.json"
|
"./data/webs/qualia/color.json"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -71,7 +71,7 @@
|
|||||||
"anchors" : {
|
"anchors" : {
|
||||||
"self" : 2
|
"self" : 2
|
||||||
},
|
},
|
||||||
"children" : [
|
"dependencies" : [
|
||||||
"./data/webs/linguistics/linguistics.json",
|
"./data/webs/linguistics/linguistics.json",
|
||||||
"./data/webs/philosophy/philosophy.json",
|
"./data/webs/philosophy/philosophy.json",
|
||||||
"./data/webs/qualia/qualia.json"
|
"./data/webs/qualia/qualia.json"
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"tag" : "web",
|
"tag" : "web",
|
||||||
"children" : [
|
"dependencies" : [
|
||||||
"./data/webs/physical-instances/conversations/convo1.json"
|
"./data/webs/physical-instances/conversations/convo1.json"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -56,7 +56,7 @@ public class KnowledgeWeb {
|
|||||||
/**
|
/**
|
||||||
* Child webs
|
* Child webs
|
||||||
*/
|
*/
|
||||||
List<String> children;
|
List<String> dependencies;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
@ -177,8 +177,8 @@ public class KnowledgeWeb {
|
|||||||
rVal.anchors.updateReferences(crossRelationLookupMap, rVal.getTag());
|
rVal.anchors.updateReferences(crossRelationLookupMap, rVal.getTag());
|
||||||
}
|
}
|
||||||
//parse children
|
//parse children
|
||||||
if(rVal.getChildren() != null && rVal.getChildren().size() > 0){
|
if(rVal.getDependencies() != null && rVal.getDependencies().size() > 0){
|
||||||
for(String child : rVal.getChildren()){
|
for(String child : rVal.getDependencies()){
|
||||||
KnowledgeWeb childWeb = KnowledgeWeb.recursivelyLoad(crossRelationLookupMap, foundTags, child);
|
KnowledgeWeb childWeb = KnowledgeWeb.recursivelyLoad(crossRelationLookupMap, foundTags, child);
|
||||||
KnowledgeWeb.registerChildItems(crossRelationLookupMap, rVal, childWeb);
|
KnowledgeWeb.registerChildItems(crossRelationLookupMap, rVal, childWeb);
|
||||||
}
|
}
|
||||||
@ -281,11 +281,11 @@ public class KnowledgeWeb {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the child webs of this web
|
* Gets the list of webs upon which this depends
|
||||||
* @return The list of child webs
|
* @return The list of dependency webs
|
||||||
*/
|
*/
|
||||||
public List<String> getChildren(){
|
public List<String> getDependencies(){
|
||||||
return children;
|
return dependencies;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getTag(){
|
public String getTag(){
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user