Module:NeoWikiDemo: Difference between revisions

Content deleted Content added
NeoWiki (talk | contribs)
Importing NeoWiki demo data
NeoWiki (talk | contribs)
Importing NeoWiki demo data
 
(One intermediate revision by the same user not shown)
Line 62:
end
rows[#rows + 1] = '|-'
rows[#rows + 1] = '| ' .. name .. ' || ' .. stmt.typepropertyType .. ' || ' .. table.concat( vals, ', ' )
end
 
Line 303:
-- the graph: the canonical edges run Birth -> Person, so a person's role in each
-- event ("was born" / CIDOC P98i, mother, father) is derived here rather than
-- stored as an inverse edge. DateThe `date` property is readstored as b.Date[0]a becausenative the `date` propertyNeo4j
-- isdate storedlist; asthe aresult stringnormalizer list;renders switch to toString(b.Date[0]) if/whenas datea isY-m-d storedstring.
-- as a native Neo4j date.
function p.personEvents( frame )
local name = mw.title.getCurrentTitle().text