%META:TOPICPARENT{name="VirtRDFViews"}% ---+++RDF View for ODS Community IMPORTANT! The following code is part of the ODS global VIEW regarding the Community part, it is not a separate VIEW and is strongly recommended NOT to be executed directly. Instead, you should use the code from [[VirtRDFViewODSGlobal][ODS RDF Views Deployment and Demo Scripts]]. sparql prefix ods: # Community create iri class ods:community_forum "http://^{URIQADefaultHost}^/dataspace/%U/community/%U" (in uname varchar not null, in forum_name varchar not null) option (returns "http://^{URIQADefaultHost}^/dataspace/%U/community/%U") . sparql prefix sioc: prefix sioct: prefix atom: prefix rdfs: prefix foaf: prefix dc: prefix dct: prefix skos: prefix geo: prefix bm: prefix exif: prefix ann: prefix wikiont: prefix calendar: prefix ods: alter quad storage virtrdf:DefaultQuadStorage from DB.DBA.ODS_COMMUNITIES as community where (^{community.}^.C_OWNER = ^{users.}^.U_NAME) { create virtrdf:ODS_DS as graph ods:graph (users.U_NAME) option (exclusive) { #---- # Community ods:community_forum (community.C_OWNER, community.CM_COMMUNITY_ID) a sioc:Community ; sioc:has_part ods:forum (community.A_OWNER, community.A_TYPE, community.CM_MEMBER_APP) . ods:forum (community.A_OWNER, community.A_TYPE, community.CM_MEMBER_APP) sioc:part_of ods:community_forum (community.C_OWNER, community.CM_COMMUNITY_ID) . # end Community #--- } . } . ; CategoryVirtuoso CategoryRDF CategoryCommunity