This HTML5 document contains 37 embedded RDF statements represented using HTML+Microdata notation.

The embedded RDF content will be recognized by any processor of HTML5 Microdata.

PrefixNamespace IRI
dctermshttp://purl.org/dc/terms/
n18http://s3.amazonaws.com/opldownload/uda/vad-packages/6.1/virtuoso/conductor_dav.
atomhttp://atomowl.org/ontologies/atomrdf#
foafhttp://xmlns.com/foaf/0.1/
n13http://vos.openlinksw.com/dataspace/services/wiki/
n19http://host:port/
oplhttp://www.openlinksw.com/schema/attribution#
n2http://vos.openlinksw.com/dataspace/owiki/wiki/VOS/
n16http://s3.amazonaws.com/opldownload/uda/vad-packages/6.1/virtuoso/cartridges_dav.
dchttp://purl.org/dc/elements/1.1/
n15http://vos.openlinksw.com/dataspace/dav#
n14http://s3.amazonaws.com/opldownload/uda/vad-packages/6.1/virtuoso/ods_framework_dav.
rdfshttp://www.w3.org/2000/01/rdf-schema#
n12http://rdfs.org/sioc/services#
siocthttp://rdfs.org/sioc/types#
n25http://vos.openlinksw.com/dataspace/person/dav#
n17http://www.facebook.com/developers/editapp.php?
n27http://facebook.
n9http://vos.openlinksw.com/dataspace/owiki/wiki/
rdfhttp://www.w3.org/1999/02/22-rdf-syntax-ns#
n21http://vos.openlinksw.com/dataspace/owiki/wiki/VOS/VirtSpongerCartridgeFacebook/sioc.
n11http://vos.openlinksw.com/dataspace/owiki#
n24http://www.facebook.com/p/
n22http://www.facebook.com/.*
xsdhhttp://www.w3.org/2001/XMLSchema#
n5http://vos.openlinksw.com/dataspace/%28NULL%29/wiki/VOS/
n8http://vos.openlinksw.com/dataspace/person/owiki#
siochttp://rdfs.org/sioc/ns#
Subject Item
n2:VirtSpongerCartridgeFacebook
rdf:type
atom:Entry sioct:Comment
dcterms:created
2017-06-13T05:36:25.280856
dcterms:modified
2017-06-13T05:36:25.280856
rdfs:label
VirtSpongerCartridgeFacebook
foaf:maker
n8:this n25:this
dc:title
VirtSpongerCartridgeFacebook
opl:isDescribedUsing
n21:rdf
sioc:has_creator
n11:this n15:this
sioc:content
%VOSWARNING% %VOSNAV% %META:TOPICPARENT{name="RDFMappers"}% ---++Virtuoso Sponger Cartridge for Facebook ---+++Create Facebook API Key and Session: 1. Create an account at http://facebook.com 1. Go to link "Applications" 1. Click the link "developers". 1. Go to http://www.facebook.com/developers/editapp.php?new 1. Click "Get Started" link. 1. Click the link "Add Facebook Developer Application" 1. Click the button "Set up New Application" 1. Enter name in the field "Application Name" 1. Check the shown check-box. 1. Click the "Optional fields" link. 1. Enter in "Callback Url" field the url to your ods location, i.e. <verbatim> http://host:port/ods/ </verbatim> 1. Fill in the "Canvas Page URL" field, for example: <verbatim> http://apps.facebook.com/myods/ </verbatim> 1. Select the radio-box "Use iframe". 1. For "Can your application be added on Facebook?" choose the "Yes" radio-box. 1. For the field "Post-Add URL" enter your canvas url from above, for example: <verbatim> http://apps.facebook.com/myods/ </verbatim> 1. For the field "Side Nav URL" enter your canvas url from above, for example: <verbatim> http://apps.facebook.com/myods/ </verbatim> 1. Click Submit 1. As result your API key and session will be created and shown under the name of the created application. ---+++Facebook integration in Conductor: 1. Upgrade to the latest <code>[[http://s3.amazonaws.com/opldownload/uda/vad-packages/6.1/virtuoso/conductor_dav.vad][conductor_dav.vad]]</code>, <code>[[http://s3.amazonaws.com/opldownload/uda/vad-packages/6.1/virtuoso/ods_framework_dav.vad][ods_framework_dav.vad]]</code> and <code>[[http://s3.amazonaws.com/opldownload/uda/vad-packages/6.1/virtuoso/cartridges_dav.vad][cartridges_dav.vad]]</code> packages. 1. Go from Conductor to tab RDF->Linked Data->Sponger->Extractor Cartridges 1. As result in the Cartridges list should be shown a mapper with description "Facebook" and pattern " http://www.facebook.com/.*" 1. Click its "Edit" link. 1. Click the link "Get FB Session". 1. Now enter the API key you have created from above for your FB application. 1. Click the "Get token" button. 1. Click the link "get login code for [the name of your app]" 1. As result should be shown the page with title "Save My Login Info". Click the "Generate" button. 1. As result should be shown the one-time code. 1. In the form bellow the page enter in the "Authentication Token" the code from step 10. and enter the secret value you have generated from above. 1. Click the "Generate session" button. 1. As result this message should be shown: <verbatim> "FB permanent session generation Your permanent FB session key is: .... Copy an paste the shown code in the FB Linked Data 'session' option, then can close this window." </verbatim> 1. Now in the still opened page from Conductor in the Options text-area enter the session=[the session key from above] and for secret=[enter the generated one form above] 1. Enter for API Key the generated one from above. 1. Click the button "Update". ---+++Facebook integration in ODS: Note: If no ODS user Profile Edit Page is set with FB key, secret and session, then by default the values are taken from Conductor, if entered. 1. Login at ODS 1. Go to user's Edit Profile Page 1. Go to tab "Associations& Web Services" 1. Fill in the values in the "Facebook Session" text-area respectively for key, secret with the generated ones from above. 1. If you do not have the session value, click the "Get FB session" button and: 1. As result will open a new pop-up page. Enter the API key for your FB application. 1. Click the "Get token" button. 1. Click the link "get login code for [the name of your app]" 1. As result should be shown the page with title "Save My Login Info". Click the "Generate" button. 1. As result should be shown the one-time code. 1. In the form bellow the page enter in the "Authentication Token" the code from step 10. and enter the secret value you have generated from above. 1. Click the "Generate session" button. 1. As result this message should be shown: <verbatim> "FB permanent session generation Your permanent FB session key is: .... Copy an paste the shown code in the FB Linked Data 'session' option, then can close this window." </verbatim> 1. Copy the generated session value and close the page. 1. Paste the generated session value in the "session=" area. 1. Click Save. ---+++Viewing your ODS as application of Facebook: 1. Go to the url you have entered from above for your application, for example: <verbatim> http://apps.facebook.com/myods/ </verbatim> 2. In the shown frame with ODS click sign in and login with an account you have at your ODS location. 3. As result you should be logged in successfully. ---+++Injecting Facebook data into ODS: 1. In your Facebook account area create an album with several images uploaded. 2. Share the album to your friend(s). 3. Create several events. 4. Go to Facebook Profile page. 5. At the bottom click the "Create a Profile Badge" link. 6. Click the button "Create Badge". 7. Click the button "Save". 8. As result at the bottom of the page will be shown your profile public link, for example: <verbatim> Put a link to your Facebook profile on AIM: <a href=http://www.facebook.com/p/Lio_Lao/646053997>Facebook me!</a> </verbatim> 9. Copy this URL: http://www.facebook.com/p/[your name]/[fid] 10. Now go to http://host:port/sparql (you can also use the RDF Browser, isparql or the isql tool). 11. Enter as default Graph URL the url from the previous step. 12. Execute the query: <verbatim> SELECT DISTINCT ?Concept FROM <http://www.facebook.com/p/[your name]/[fid]> WHERE { [] rdf:type ?Concept . } </verbatim> Note: if you have entered the FB key, session and secret for an ODS User and you want to view his FB Graph data, you need to add the login name in front of the query, i.e.: <verbatim> define get:login "test1" SELECT DISTINCT ?Concept FROM <http://www.facebook.com/p/Lio_Lao/646053997> WHERE { [] rdf:type ?Concept . } </verbatim> CategoryVirtuoso CategorySponger CategorySpec CategoryDocumentation CategoryFacebook CategoryODS CategoryRDF %VOSCOPY%
sioc:id
3ba7e9c9251f49e8689a34521c7c1f7b
sioc:link
n2:VirtSpongerCartridgeFacebook
sioc:has_container
n9:VOS
n12:has_services
n13:item
atom:title
VirtSpongerCartridgeFacebook
sioc:links_to
n5:CategoryRDF n5:CategorySponger n5:CategorySpec n5:CategoryVirtuoso n5:CategoryODS n14:vad n16:vad n17:new n18:vad n19:sparql n22: n24: n5:CategoryFacebook n5:CategoryDocumentation n27:com
atom:source
n9:VOS
atom:author
n25:this
atom:published
2017-06-13T05:36:25Z
atom:updated
2017-06-13T05:36:25Z
sioc:topic
n9:VOS