参与是一个用于社会参与本体论、rdf数据(链接数据)三重化和分析的python包。
participation的Python项目详细描述
RDF社会参与数据分析和综合程序。 理想的设施包括:
- Observance of expected stability and overall measures of each instance.
- Integration of data from a number of instances.
- Integration of data from a usual social platforms (Facebook, Twitter, LinkedIn).
- Recommendation of resources through topological and textual criteria, with explicit routines and potential uses.
- Synthesis of audiovisual artifacts to ease observation, probing and exploitation.
- Translation of participatory data to RDF.
- HTTP utilities, such as bootstrapping participatory ontologies or an access to resource recommendation routines.
公共数据,如gmane数据库提供的或私人网络(如facebook)捐赠的个人资料,或twitter收集的,可以作为rdf合并到社交图中。
用法示例
importparticipationasP# downloads Social Participation data from Participabr,# Cidade Democrática and AA from datahub.ioP.download()# The triplification routines are available:# accesses Participa.br data on PostgreSQL and save RDF Xml and TurtleP.triplification.ParticipaTriplification("dbname","username")# accesses Participa.br data on PostgreSQL and save RDF Xml and TurtleP.triplification.AATriplification("dbname","username","dbname2","username2","ircLog.txt")# accesses Participa.br data on PostgreSQL and save RDF Xml and TurtleP.triplification.OCDTriplify("dbname","username")# print number of users in each RDF graph# print number of incidences of each# print vocabularyimportsocialasS# To load GDF file:fg=S.GDFgraph("../data/RenatoFabbri06022014.gdf")# graph should be on fg.G# find posts by friends with similar names# To make an abstract animation with the overall network:song=S.FSong(fg.G,"fsong/",True,True,False,True)# Check mixedVideo.webm# Add information about users that are equivalent (through RDF).# make network with and without that information# Make recommendation based on a target resource# Make recommendation of percolatory method# Rise a flask instance, point an example meteor interface# more ***under construction***# Enjoy!