. . . . . . "7a41eb4d43f5706a5a05573eba8bf2e6" . "VirtRDFViewODSGallery" . . . "2017-06-13T05:37:40Z" . . "2017-06-13T05:37:40Z" . . . . . "%META:TOPICPARENT{name=\"VirtRDFViews\"}%\n\n---+++RDF View for ODS Gallery\n\nIMPORTANT! The following code is part of the ODS global VIEW regarding the Gallery 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]].\n\n\nsparql prefix ods: \n\n #Photo\n\tcreate iri class ods:photo_forum \"http://^{URIQADefaultHost}^/dataspace/%U/photos/%U\"\n\t\t(in uname varchar not null, in inst_name varchar not null)\n\t\toption (returns \"http://^{URIQADefaultHost}^/dataspace/%U/photos/%U\") .\n\tcreate iri class ods:photo_post \"http://^{URIQADefaultHost}^%s\"\n\t\t(in path varchar not null) option (returns \"http://^{URIQADefaultHost}^/DAV/%s\") .\n\tcreate iri class ods:photo_post_text \"http://^{URIQADefaultHost}^%s/text\"\n\t\t(in path varchar not null) option (returns \"http://^{URIQADefaultHost}^/DAV/%s/text\") .\n\tcreate iri class ods:photo_comment \"http://^{URIQADefaultHost}^%s:comment_%d\"\n\t\t(in path varchar not null, in comment_id int not null)\n\t\toption (returns \"http://^{URIQADefaultHost}^/DAV/%s:comment_%d\") .\n\n\n\n\nsparql\n prefix sioc: \n prefix sioct: \n prefix atom: \n prefix rdfs: \n prefix foaf: \n prefix dc: \n prefix dct: \n prefix skos: \n prefix geo: \n prefix bm: \n prefix exif: \n prefix ann: \n prefix wikiont: \n prefix calendar: \n prefix ods: \n\n alter quad storage virtrdf:DefaultQuadStorage\n \n from DB.DBA.ODS_PHOTO_POSTS as photo_posts\n where (^{photo_posts.}^.U_MEMBER = ^{users.}^.U_NAME)\n from DB.DBA.ODS_PHOTO_COMMENTS as photo_comments\n where (^{photo_comments.}^.U_MEMBER = ^{users.}^.U_NAME)\n from DB.DBA.ODS_PHOTO_TAGS as photo_tags\n where (^{photo_tags.}^.U_MEMBER = ^{users.}^.U_NAME)\n\n{\n\tcreate virtrdf:ODS_DS as graph ods:graph (users.U_NAME) option (exclusive)\n\t {\n\t #----\n\n # Photo\n\t ods:photo_post (photo_posts.RES_FULL_PATH) a exif:IFD ;\n\t dc:title photo_posts.RES_NAME ;\n\t dct:created photo_posts.RES_CREATED ;\n\t dct:modified photo_posts.RES_MODIFIED ;\n\t sioc:content photo_posts.RES_DESCRIPTION ;\n\t sioc:has_creator ods:user (photo_posts.U_OWNER) ;\n\t foaf:maker ods:person (photo_posts.U_OWNER) ;\n\t sioc:link ods:proxy (photo_posts.RES_LINK) ;\n\t sioc:has_container ods:photo_forum (photo_posts.U_MEMBER, photo_posts.WAI_NAME) .\n\n\t ods:photo_forum (photo_posts.U_MEMBER, photo_posts.WAI_NAME)\n\t sioc:container_of\n\t ods:photo_post (photo_posts.RES_FULL_PATH) .\n\n\t ods:user (photo_posts.U_OWNER)\n\t sioc:creator_of\n\t ods:photo_post (photo_posts.RES_FULL_PATH) .\n\n\t ods:photo_post (photo_tags.RES_FULL_PATH)\n\t sioc:topic\n\t ods:tag (photo_tags.U_MEMBER, photo_tags.RES_TAG) .\n\n\t ods:tag (photo_tags.U_MEMBER, photo_tags.RES_TAG) a skos:Concept ;\n\t skos:prefLabel photo_tags.RES_TAG ;\n\t skos:isSubjectOf ods:photo_post (photo_tags.RES_FULL_PATH) .\n\n\t ods:photo_comment (photo_comments.RES_FULL_PATH, photo_comments.COMMENT_ID) a sioct:Comment ;\n\t sioc:reply_of ods:photo_post (photo_comments.RES_FULL_PATH) ;\n\t sioc:has_container ods:photo_forum (photo_comments.U_MEMBER, photo_comments.WAI_NAME) ;\n\t dc:title photo_comments.RES_NAME ;\n\t dct:created photo_comments.CREATE_DATE ;\n\t dct:modified photo_comments.MODIFY_DATE ;\n\t sioc:content photo_comments.TEXT ;\n\t foaf:maker ods:person (photo_comments.U_MAKER) .\n\n\t ods:photo_post (photo_comments.RES_FULL_PATH)\n\t sioc:has_reply\n\t ods:photo_comment (photo_comments.RES_FULL_PATH, photo_comments.COMMENT_ID) .\n\t # end Photo\n #---\n\t } .\n } .\n;\n\nCategoryVirtuoso CategoryRDF CategoryGallery\n\n\n\n\n\n\n\n\n" . . . "VirtRDFViewODSGallery" . "VirtRDFViewODSGallery" . . "2017-06-13T05:37:40.131417"^^ . "2017-06-13T05:37:40.131417"^^ . .