If you are interested in this kind of problems, you might want to learn about MediaWiki (the software behind wikipedia) and the SemanticMediaWiki extension. That allows for extracting and representing formal knowledge about wiki pages. It's quite powerful and allows for programming quite sophisticated databases ontop of MediaWiki (kind of in-system effect). Also WikiData is a project/MediaWiki extension worth exploring.