Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.213.932 Times

Sparrow for Linux 1.0 Beta 4

Company: Jasper Op de Coul
Date Added: August 04, 2013  |  Visits: 272

Sparrow for Linux

Report Broken Link
Printer Friendly Version


Product Homepage
Download (33 downloads)



Sparrow is a Python library that provides a very high-level abstraction for RDF databases. It provides support for the following basic functions:<br /><br />* Parsing RDF statements from different formats into a contextual database<br />* Serializing the RDF statements for a specific context of a database<br />* Removing statements from a specific context of a database<br />* Performing SPARQL Queries<br /><br />Sparrow is completely agnostic to which database backend is used. RDF Statements are loaded into and from databases in specific serialization formats like rdfxml, ntriples or turtle.<br /><br />Sparrow provides no API for Statements, URIRef and Literal objects. It also does not provide a graph API. This is an intentional choice, since the goal of Sparrow is not to provide a full RDF library, but a lightweight wrapper that can easily be used for several backends.<br /><br />At the moment there is support for the following backends:<br /><br />* Redland librdf<br />* RDFLib<br />* Sesame openrdf<br /><br />Usage:<br /><br />Normally, you will only need to import the base sparrow module<br /><br />>>> import sparrow<br /><br />Most of the database backends will not work out of the box. Since the RDFLib backend is written in python and packaged on pypi, it is always available, and installed with Sparrow.<br /><br />Let's create an in memory rdflib database<br /><br />>>> sparrow.database('rdflib', 'memory')<br />< sparrow.rdflib_backend.RDFLibConnector ... ><br /><br />This is actually not the database, but a database connector. It manages the different connections to a database. Let's get a connection to the database<br /><br />>>> db = sparrow.database('rdflib', 'memory').connect()<br />>>> db<br />< sparrow.rdflib_backend.RDFLibDatabase ... ><br /><br />Now that we have the database, we can ask it which RDF serialization formats it supports<br /><br />>>> db.formats()<br />['ntriples', 'rdfxml', 'turtle']<br /><br />Let's add some triples to the database, we will use turtle syntax for this. We'll make some example statements where we will state that john is a person, and that his firstname is "John".<br /><br />>>> data = """@prefix ex: < http://example.org# > .<br />... ex:john a ex:Person; ex:name "John" ."""<br /><br />Now we can add this to the database. We will need to tell the database which format the data is in, and in which context to store it. A 'base URI' for the data should also be provided. We will use the example.org namespace for that.<br /><br />>>> db.add_triples(StringIO(data), 'turtle', 'http://example.org','persons')<br /><br />We can now ask the database, which contexts it has:<br /><br />>>> db.contexts()<br />[u'persons']<br /><br />You can store data in as many different contexts as you like, or put everything in a single context.<br /><br />Lets do a simple SPARQL query on the database<br /><br />>>> result = db.select('SELECT ?x {?x < http://example.org#name > "John".}')<br /><br />The is only on variable in this query: x<br /><br />>>> result.variables()<br />[u'x']<br /><br />We can get the results as a list of dictionaries. This follows the SPARQL JSON result format.<br /><br />>>> result.results()<br />[{u'x': {'type': u'uri', 'value': u'http://example.org#john'}}]<br /><br />Besides querying, we can also get the data back from the database in any of the supported formats. We specify which format we want, and which context to use.<br /><br />>>> db.serialize_triples('ntriples', 'persons').read()<br />'< http://example.org#john > ...'<br /><br />If the database backend supports it, you can ask how many triples are in a context.<br /><br />>>> db.count('persons')<br />2<br /><br />If you want to remove triples, you will need to supply data describing which triples to remove.<br /><br />>>> data = StringIO(' a .')<br />>>> db.remove_triples(data, 'turtle', 'http://example.org', 'persons')<br />>>> db.count('persons')<br />1<br /><br />You can also remove all triples in a context<br /><br />>>> db.clear('persons')<br />>>> db.count('persons')<br />0<br /><br />Since the 'persons' context is now empty, it is also removed.<br /><br />>>> db.contexts()<br />[]<br />Changelog for Sparrow<br />=====================

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: Backend Backends Context Contextgtgtgt Contexts Database Formats Provide Sparql Sparrow Sparrow For Linux 1 0 Beta 4 Specific Statements Triples
Users rating: 0/10

License: Freeware Size: 61.44 KB
USER REVIEWS
More Reviews or Write Review


SPARROW FOR LINUX RELATED
Libraries  -  PHP Database Interface 1.0 RC4
PHP Database Interface is an easy to use PHP database interface meant to give applications universal support across many databases, including several flat file formats. Installation These are just a few notes installation notes regarding DBi...
33.79 KB  
Network & Internet  -  mod_dav 1.0.3-1.3.6
mod_dav is an Apache module to provide DAV capabilities (RFC 2518) for your Apache web server. mod_dav currently implements a Class 1 and Class 2 DAV server. This means that it provides all the basic DAV facilities for manipulating resources...
184.32 KB  
Network & Internet  -  Inspect Context for Linux 1.00
Open Dom Inspector at this node from Inspect on context menu. Dom Inspector must already be installed. Handy for checking both page for web developers and chrome for extension developers. Adds menu item to many existing context menus. Stand alone...
10.24 KB  
Shell & Desktop  -  Themis Action Editor 1.0 Beta 4
Themis Action Editor is a small application for the KDE Desktop which allows you to edit context menu entries in a simple way. For running Themis the following libraries and programs are needed: Ruby Interpreter, tested with version 1.8...
82.94 KB  
Utilities  -  DigiTools 1.0
DigiTools project aims to provide full hardware support on Linux for the specialized equipment that comes standard with the ASUS Digimatrix barebones system. Whats New in This Release: - Control of most of the Digimatrix hardware is possible...
43.01 KB  
Database Tools  -  Bond 2.4.3
Bond is a rapid application development (RAD) tool for linux that allows you to create network database programs quickly and easily. With this new version comes major updates in Bond XML format, and a move away from the use of C code completely!...
5.1 MB  
Boot Managers  -  boottool 1.2
boottool and Linux::Bootloader provide a generic interface for detecting the installed bootloader, updating bootloader configuration files, and performing boot-once to a given kernel. Supported bootloaders include grub, yaboot, lilo and elilo....
40.96 KB  
Programming  -  Disassembler for linux 0.3.3
Disassembler for linux is a software that will try to provide a gui driven tool to disassemble executables. Written in C++, and will disassemble binaries from a number of OSses..
368.64 KB  
Database Tools  -  ChessX 0.5
ChessX is a free Open Source Chess Database for Linux, Windows, and Mac OS X. The project uses Qt library to create modern, portable graphical interface. Current development is aimed at providing full featured PGN database. Afterwards we will add...
614.4 KB  
Development Tools  -  phpXMLP for XML Tools 0.1
phpXMLP aims to be a XML Protocol implementation for PHP. It should provide support for SOAP 1.2 and WSDL 1.0.It follows very closely the design proposed by the XML Protocol Abstract Model Working Draft published on the 9th of July, 2001 by the W3C.
972.8 KB  
NEW DOWNLOADS IN LINUX SOFTWARE, BUSINESS
Linux Software  -  EasyEDA PCB Designer for Linux 2.0.0
EasyEDA, a great web based EDA(Electronics Design Automation) tool, online PCB tool, online PCB software for electronics engineers, educators, students, makers and enthusiasts. Theres no need to install any software. Just open EasyEDA in any...
34.4 MB  
Linux Software  -  wpCache® WordPress HTTP Cache 1.9
wpCache® is a high-performance, distributed object, caching system application, generic in nature, but intended for use in speeding up dynamic web applications, by decreasing database load time. wpCache® decreases dramatically the page...
3.51 MB  
Linux Software  -  Polling Autodialer Software 3.4
ICTBroadcast Auto Dialer software has a survey campaign for telephone surveys and polls. This auto dialer software automatically dials a list of numbers and asks them a set of questions that they can respond to, by using their telephone keypad....
488 B  
Linux Software  -  Total Video Converter Mac Free 3.5.5
Total Video Converter Mac Free developed by EffectMatrix Ltd is the official legal version of Total Video Converter which was a globally recognized brand since 2006. Total Video Converter Mac Free is a free but powerful all-in-one video...
17.7 MB  
Linux Software  -  Skeith mod_log_sql Analyzer 2.10beta2
Skeith is a php based front end for analyzing logs for Apache using mod_log_sql.
47.5 KB  
Business  -  Inventoria Inventory Software Free 11.06
Inventoria is professional inventory stock management software for Windows that allows you to manage inventory in one or several locations. Manage your stock levels by categories, locations, and vendors. Combine Inventoria with HourGuard, Express...
611.18 KB  
Business  -  Java SQL Admin Tool for Linux 2.4.3
This is a Java-based Admin-Tool for SQL-Databases via JDBC. It needs to have JDK 1.6 underneath In the beginnings of Java I had my first look at this exciting product. So I decided to learn more about Java. As beeing a developer for...
686.08 KB  
Business  -  DBBalancer 0.4.4
DBBalancer is some sort of middleware that would sit in between of database clients, like C, C++, TCL, Java JDBC, Perl DBI, and a database server. Currently the only server supported is Postgres, but the architecture is open to embrace more...
174.08 KB  
Business  -  Postgres Plus 9.0.4
Postgres Plus is a distribution of PostgreSQL that contains the following additional features integrated in a convenient installation package: Postgres Studio for administration, Procedural Language Debugger, GridSQL Parallel Query, MySQL...
43.06 MB  
Business  -  Apatar Data Integration 1.12.23
Apatar is an open source Extract, Transform, and Load (ETL) project. Modular architecture delivers: 1. Visual job designer/mapping 2. Connectivity to all major data sources 3. Flexible Deployment Options (GUI, or server engine with JVM, or...
25.94 MB