Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Database > Database APIs

    SPARQLWrapper 1.5.2

    Download button

    No screenshots available
    Downloads: 751  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
    August 30th, 2012, 21:17 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

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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