From: sampath v. <sam...@gm...> - 2006-03-27 18:17:03
|
Hi, I am using RAP(Statement-Centric MemModel API) for my conference publications management project. For each publication we automatically generate RDF file. All the files are kept on the server. I am building the interface for reporting and querying. I am using the find method. Here is my rdf file and the code for querying. Problems: 1) I do not want the results in html table format. I want it as a list wher= e I get the file name. 2) I have to search a number of RDF files. Can you suggest me a way. Sample publication rdf file: <?xml version=3D"1.0" encoding=3D"UTF-8" ?> <?xml-stylesheet type=3D"text/xsl" href=3D"../publication.xsl"?> <rdf:RDF xml:base=3D"../index.rdf#" xmlns:rdf=3D"http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs=3D"http://www.w3.org/2000/01/rdf-schema#" xmlns:ns1=3D"http://purl.org/dc/elements/1.1/" xmlns:ns2=3D"http://purl.org/dc/terms/"> <rdf:Description rdf:about=3D"./p1.pdf"> <ns1:title>Foreground Object Detection from Videos Containing Complex Background </ns1:title> <ns1:type>subunit</ns1:type> <ns2:DCMIType>publication</ns2:DCMIType> <ns2:abstract>This paper proposes a novel method for detection and segmentation of foreground objects from a video which contains both stationary and moving background objects and undergoes both gradual and sudden changes. A Bayes decision rule for classification of background and foreground from selected feature vectors i= s formulated. Under this rule, different types of background objects will be classified from foregroun= d objects by choosing a proper feature vector. The stationary background object is described by the color feature, and the moving background object is represented by the color co-occurrence feature. Foreground objects are extracted by fusing the classification results from both stationary and moving pixels. Learning strategies for the gradual and sudden background changes are proposed to adapt to various changes in background through the video. The convergence of the learning process is proved and a formula to select a proper learning rate is also derived. Experiments have shown promising results in extracting foreground objects from many complex backgrounds including wavering tre= e branches, flickering screens and water surfaces, moving escalators, opening and closing doors, switching light= s and shadows of moving objects.</ns2:abstract> <ns1:subject>Video processing, background modeling, foreground segmentation, video surveillance, Bayes model, color co-occurrence. </ns1:subject> <ns2:references>I. Haritaoglu, D. Harwood, and L. Davis. W4: Real-time surveillance of people and their activities. </ns2:references> <ns1:contributor>L. Li, W. Huang, I. Y. H. Gu, Q. Tian</ns1:contributor= > <ns1:format>pdf</ns1:format> <ns2:isPartOf> http://www.ndsu.edu/ndsu/velupula/cms/conference1/index.rdf</ns2:isPartOf> <ns2:isFormatOf>Content Analysis</ns2:isFormatOf> </rdf:Description> </rdf:RDF> Sample Code to Query: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Conference Management System</title> </head> <body> <h1 align=3D"center">Conference Management System </h1> <p> </p> <p><strong>SEARCH RESULTS:</strong></p> <?php define("RDFAPI_INCLUDE_DIR", "rdfapi-php/api/"); include_once(RDFAPI_INCLUDE_DIR."RdfAPI.php"); // Filename of an RDF document $base=3D"./conference1/p1.rdf"; // Create a new MemModel $model =3D ModelFactory::getDefaultModel(); // Load and parse document $model->load($base); $homepage =3D new Literal("Content Analysis"); $res =3D $model->find(NULL, NULL, $homepage); $res->writeAsHtmlTable(); echo $res->toStringIncludingTriples(); echo "<P>"; ?> </body> </html> Please do reply me. Thanks in advance. -- Sampath Velupula |