Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • BackTrack 5 R2
  • Wine 1.4 / 1.5.5
  • Mozilla Firefox 12...
  • Ubuntu 11.04
  • Angry Birds 1.1.2.1
  • Ubuntu 10.04.4 LTS
  • Linux Kernel 3.4
  • Ubuntu Manual 10.10
  • Adobe Flash Player...
  • Pidgin 2.10.4
  • Home > Linux > Database > Database APIs

    SPARQLWrapper 1.5.0

    Download button

    No screenshots available
    Downloads: 606  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Ivan Herman, Sergio Fernández, Carlos Tejo | More programs
    W3C License / FREE
    February 9th, 2012, 05:44 GMT
    ROOT / Database / Database APIs

     Read user reviews (0)  Refer to a friend  Subscribe

    SPARQLWrapper description

    SPARQL Wrapper

    SPARQLWrapper is a SPARQL endpoint interface to Python. It is a wrapper around a SPARQL service. It helps in creating the query URI and, possibly, convert the result into a more manageable format.

    The SPARQLWrapper package is licensed under W3C license.

    Here you have an example of how to use the library in your python program:

    from SPARQLWrapper import SPARQLWrapper, JSON

    sparql = SPARQLWrapper("http://dbpedia.org/sparql")
    sparql.setQuery("""
     PREFIX rdfs:
     SELECT ?label
     WHERE { rdfs:label ?label }
    """)
    sparql.setReturnFormat(JSON)
    results = sparql.query().convert()

    for result in results["results"]["bindings"]:
     print result["label"]["value"]



    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    SPARQL wrapper | Python module | SPARQL interface | SPARQL | wrapper | interface



    HTML code for linking to this page:


    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM