this repo has no description

Compare changes

Choose any two refs to compare.

Changed files
+3 -5
peruse
wikidata
+2 -2
peruse/handle_wikidata_feed.go
···
if len(propertyPts) == 0 {
continue
}
-
propertyId := entityPts[len(propertyPts)-1]
+
propertyId := propertyPts[len(propertyPts)-1]
instanceOfPts := strings.Split(e.InstanceOf, "/")
if len(instanceOfPts) == 0 {
continue
}
-
instanceOfId := entityPts[len(instanceOfPts)-1]
+
instanceOfId := instanceOfPts[len(instanceOfPts)-1]
entities[entityId] = wikidata.Entity{
Entity: entityId,
+1 -3
wikidata/wikidata.go
···
}
const (
-
PropertyId = "Q5"
-
-
EntityIdHuman = "Q809898"
+
EntityIdHuman = "Q5"
)