VOS.VirtuosoOdsControllersUserEx7

  • Topic
  • Discussion
  • VOS.VirtuosoOdsControllersUserEx7(Last) -- DAVWikiAdmin? , 2017-06-13 05:36:50 Edit WebDAV System Administrator 2017-06-13 05:36:50

    Example Usage of ODS Framework Controller for User Get


    $ curl -i "http://demo.openlinksw.com/ods/api/user.get?name=test123"
    HTTP/1.1 200 OK
    Server: Virtuoso/05.12.3041 (Solaris) x86_64-sun-solaris2.10-64  VDB
    Connection: Keep-Alive
    Date: Mon, 28 Dec 2009 22:56:30 GMT
    Accept-Ranges: bytes
    Content-Type: application/sparql-results+xml
    Content-Length: 3021
    
    <sparql xmlns="http://www.w3.org/2005/sparql-results#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.w3.org/200
    1/sw/DataAccess/rf1/result2.xsd">
     <head>
      <variable name="user"/>
      <variable name="property"/>
      <variable name="value"/>
     </head>
     <results distinct="false" ordered="true">
      <result>
       <binding name="user"><uri>http://demo.openlinksw.com/dataspace/test123#this</uri></binding>
       <binding name="property"><uri>http://www.w3.org/1999/02/22-rdf-syntax-ns#type</uri></binding>
       <binding name="value"><uri>http://rdfs.org/sioc/ns#User</uri></binding>
      </result>
      <result>
       <binding name="user"><uri>http://demo.openlinksw.com/dataspace/test123#this</uri></binding>
       <binding name="property"><uri>http://www.w3.org/1999/02/22-rdf-syntax-ns#type</uri></binding>
       <binding name="value"><uri>http://www.w3.org/2000/01/rdf-schema#Resource</uri></binding>
      </result>
      <result>
       <binding name="user"><uri>http://demo.openlinksw.com/dataspace/test123#this</uri></binding>
       <binding name="property"><uri>http://www.openlinksw.com/schema/attribution#isDescribedUsing</uri></binding>
       <binding name="value"><uri>http://demo.openlinksw.com/dataspace/test123/sioc.rdf</uri></binding>
      </result>
      <result>
       <binding name="user"><uri>http://demo.openlinksw.com/dataspace/test123#this</uri></binding>
       <binding name="property"><uri>http://rdfs.org/sioc/services#has_service</uri></binding>
       <binding name="value"><uri>http://demo.openlinksw.com/feeds/people/test123</uri></binding>
      </result>
      <result>
       <binding name="user"><uri>http://demo.openlinksw.com/dataspace/test123#this</uri></binding>
       <binding name="property"><uri>http://rdfs.org/sioc/services#has_service</uri></binding>
       <binding name="value"><uri>http://demo.openlinksw.com/feeds/people/test123/friends</uri></binding>
      </result>
      <result>
       <binding name="user"><uri>http://demo.openlinksw.com/dataspace/test123#this</uri></binding>
       <binding name="property"><uri>http://rdfs.org/sioc/ns#account_of</uri></binding>
       <binding name="value"><uri>http://demo.openlinksw.com/dataspace/person/test123#this</uri></binding>
      </result>
      <result>
       <binding name="user"><uri>http://demo.openlinksw.com/dataspace/test123#this</uri></binding>
       <binding name="property"><uri>http://rdfs.org/sioc/ns#email_sha1</uri></binding>
       <binding name="value"><literal>SetXcVDiHuMYAiSgEe38MQrMN3k=</literal></binding>
      </result>
      <result>
       <binding name="user"><uri>http://demo.openlinksw.com/dataspace/test123#this</uri></binding>
       <binding name="property"><uri>http://rdfs.org/sioc/ns#id</uri></binding>
       <binding name="value"><literal>test123</literal></binding>
      </result>
      <result>
       <binding name="user"><uri>http://demo.openlinksw.com/dataspace/test123#this</uri></binding>
       <binding name="property"><uri>http://rdfs.org/sioc/ns#link</uri></binding>
       <binding name="value"><uri>http://demo.openlinksw.com/dataspace/test123</uri></binding>
      </result>
     </results>