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.241.668 Times

RDFStore::Parser::SiRPAC 0.50

  Date Added: January 18, 2010  |  Visits: 967

RDFStore::Parser::SiRPAC

Report Broken Link
Printer Friendly Version


Product Homepage
Download (102 downloads)



RDFStore::Parser::SiRPAC is a Perl module that implements a streaming RDF Parser as a direct implementation of XML::Parser::Expat. SYNOPSIS use RDFStore::Parser::SiRPAC; use RDFStore::NodeFactory; my $p=new RDFStore::Parser::SiRPAC( ErrorContext => 2, Handlers => { Init => sub { print "INITn"; }, Final => sub { print "FINALn"; }, Assert => sub { print "STATEMENT - @_n"; } }, NodeFactory => new RDFStore::NodeFactory() ); $p->parsefile(http://www.gils.net/bsr-gils.rdfs); $p->parsefile(http://www.gils.net/rdf/bsr-gils.rdfs); $p->parsefile(/some/where/my.rdf); $p->parsefile(file:/some/where/my.rdf); $p->parse(*STDIN); #parse stream but with *blocking* Expat (see below example for n-blocking parsing using XML::Parse::ExpatNB) use RDFStore::Parser::SiRPAC; use RDFStore::NodeFactory; my $pstore=new RDFStore::Parser::SiRPAC( ErrorContext => 2, Style => RDFStore::Parser::Styles::RDFStore::Model, NodeFactory => new RDFStore::NodeFactory(), store => { persistent => 1, seevalues => 1, options => { Name => /tmp/test } } ); my $rdfstore_model = $pstore->parsefile(http://www.gils.net/bsr-gils.rdfs); #using the expat no-blocking feature (generally for large XML streams) - see XML::Parse::Expat(3) my $rdfstore_stream_model = $pstore->parsestream(*STDIN); This module implements a Resource Description Framework (RDF) streaming parser completely in Perl using the XML::Parser::Expat(3) module. The actual RDF parsing happens using an instance of XML::Parser::Expat with Namespaces option enabled and start/stop and char handlers set. The RDF specific code is based on the modified version of SiRPAC of Sergey Melnik in Java; a lot of changes and adaptations have been done to actually run it under Perl. Expat options may be provided when the RDFStore::Parser::SiRPAC object is created. These options are then passed on to the Expat object on each parse call. Exactly like XML::Parser(3) the behavior of the parser is controlled either by the Style entry elsewhere in this document and/or the Handlers entry elsewhere in this document options, or by the setHandlers entry elsewhere in this document method. These all provide mechanisms for RDFStore::Parser::SiRPAC to set the handlers needed by Expat. If neither Style nor Handlers are specified, then parsing just checks the RDF document syntax against the W3C RDF Raccomandation . When underlying handlers get called, they receive as their first parameter the Expat object, not the Parser object. To see some examples about how to use it look at the sections below and in the samples and utils directory coming with this software distribution. E.g. With RDFStore::Parser::SiRPAC you can easily write an rdfingest.pl script to do something like this: fetch -o - -q http://dmoz.org/rdf/content.rdf.u8.gz | gunzip - | sed -f dmoz.content.sed | rdfingest.pl -.

Requirements: No special requirements
Platforms: Linux
Keyword: Expat Handlers Libraries Module Nodefactory P- Parser Perl Perl Module Rdf Parser Rdfstore Rdfstoreparsersirpac Sirpac Xml
Users rating: 0/10

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


RDFSTORE::PARSER::SIRPAC RELATED
Libraries  -  Yahoo::Search::XML 1.7.10
Yahoo::Search::XML is a Perl module with simple routines for parsing XML from Yahoo! Search. The XML sent back from Yahoo! is fairly simple, and is guaranteed to be well formed, so we really dont need much more than to make the data easily...
35.84 KB  
Modules  -  ICCD Parser 6.x-1.0
The ICCD Parser Module extends the Feeds Module implementing a parser for the ICCD xml files.ICCD ("Istituto Centrale per il Catalogo e la Documentazione" also known as "Central Institute for Cataloguing and Documentation") is the body within the...
10 KB  
Libraries  -  Data::Phrasebook::Loader::XML 0.12
Data::Phrasebook::Loader::XML Perl module can abstract your phrases with XML. SYNOPSIS use Data::Phrasebook; my $q = Data::Phrasebook->new( class => Fnerk, loader => XML, file => phrases.xml, dict => Dictionary, # optional ); OR my...
17.41 KB  
Libraries  -  XML::Smart::Tutorial 1.6.9
XML::Smart::Tutorial is a Perl module with tutorials and examples for XML::Smart. SYNOPSIS This document is a tutorial for XML::Smart and shows some examples of usual things..
50.18 KB  
Libraries  -  Lingua::Phonology::FileFormatPOD 0.32
Lingua::Phonology::FileFormatPOD is a Perl module that contains documentation for the xml file format written and read by Lingua::Phonology. As of v0.3, Lingua::Phonology is able to read and write an XML file that defines a complete...
99.33 KB  
Libraries  -  PerlPoint::Generator::XML::XHTML::Paged 0.07
PerlPoint::Generator::XML::XHTML::Paged is a Perl module that generates paged XHTML via XML..
18.43 KB  
Libraries  -  XML::LibXML::Enhanced 0.01
XML::LibXML::Enhanced is a Perl module that adds convenience methods to XML::LibXML and LibXSLT. SYNOPSIS use XML::LibXML::Enhanced; my $xml = XML::LibXML::Singleton->instance; my $xsl = XML::LibXSLT::Singleton->instance; my $doc =...
7.17 KB  
Libraries  -  Polymorphic XML Parser 1.1.6
Polymorphic XML Parser is a validating XML parser for the programming language Objective Caml. In October, 1999, I started writing a validating XML parser for OCaml; the first published versions have been called "Markup" (simply because the...
614.4 KB  
Utilities  -  C++ WSDL Parser 1.9.3
C++ WSDL Parser is an efficient C++ Web services library that includes a standards compliant WSDL parser API, a Schema parser and validator, an XML parser and serializer, and an API for dynamically inspecting and invoking WSDL Web services....
573.44 KB  
Development Tools  -  XML_HTMLSax 2.1.2
XML_HTMLSax is a SAX based XML parser for badly formed XML documents, such as HTML. PEAR::XML_HTMLSax provides an API very similar to the native PHP XML extension, allowing handlers using one to be easily adapted to the other. The key difference...
 
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB