%META:TOPICPARENT{name="VirtRDFViews"}% ---+++RDF View for ODS Community <strong>IMPORTANT!</strong> 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]]. <verbatim> sparql prefix ods: <http://www.openlinksw.com/virtuoso/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") . </verbatim> <verbatim> sparql prefix sioc: <http://rdfs.org/sioc/ns#> prefix sioct: <http://rdfs.org/sioc/types#> prefix atom: <http://atomowl.org/ontologies/atomrdf#> prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix foaf: <http://xmlns.com/foaf/0.1/> prefix dc: <http://purl.org/dc/elements/1.1/> prefix dct: <http://purl.org/dc/terms/> prefix skos: <http://www.w3.org/2004/02/skos/core#> prefix geo: <http://www.w3.org/2003/01/geo/wgs84_pos#> prefix bm: <http://www.w3.org/2002/01/bookmark#> prefix exif: <http://www.w3.org/2003/12/exif/ns/> prefix ann: <http://www.w3.org/2000/10/annotation-ns#> prefix wikiont: <http://sw.deri.org/2005/04/wikipedia/wikiont.owl#> prefix calendar: <http://www.w3.org/2002/12/cal#> prefix ods: <http://www.openlinksw.com/virtuoso/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 #--- } . } . ; </verbatim> CategoryVirtuoso CategoryRDF CategoryCommunity