You can subscribe to this list here.
2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2010 |
Jan
|
Feb
|
Mar
(1) |
Apr
(3) |
May
(2) |
Jun
(2) |
Jul
|
Aug
(2) |
Sep
(1) |
Oct
|
Nov
(9) |
Dec
(4) |
2011 |
Jan
(1) |
Feb
(6) |
Mar
(9) |
Apr
(9) |
May
(20) |
Jun
(1) |
Jul
(2) |
Aug
(1) |
Sep
(6) |
Oct
(3) |
Nov
(13) |
Dec
(1) |
2012 |
Jan
(1) |
Feb
(12) |
Mar
(5) |
Apr
(8) |
May
|
Jun
(25) |
Jul
(7) |
Aug
(4) |
Sep
(14) |
Oct
(5) |
Nov
(22) |
Dec
(6) |
2013 |
Jan
(18) |
Feb
(28) |
Mar
(11) |
Apr
(18) |
May
(4) |
Jun
|
Jul
(9) |
Aug
(6) |
Sep
(4) |
Oct
(4) |
Nov
(6) |
Dec
(7) |
2014 |
Jan
(9) |
Feb
(15) |
Mar
(14) |
Apr
(7) |
May
(5) |
Jun
(15) |
Jul
(2) |
Aug
(6) |
Sep
(5) |
Oct
(7) |
Nov
(9) |
Dec
(16) |
2015 |
Jan
(4) |
Feb
(5) |
Mar
(1) |
Apr
(2) |
May
(2) |
Jun
(15) |
Jul
(8) |
Aug
|
Sep
(4) |
Oct
|
Nov
(4) |
Dec
(4) |
2016 |
Jan
(1) |
Feb
(1) |
Mar
|
Apr
|
May
(5) |
Jun
(5) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Rob V. <rv...@do...> - 2013-07-11 23:27:11
|
This is indeed an issue with errors not propagating correctly, if you add an UnhandledException handler to your Silverlight app you can likely intercept the error that is occurring. I am working on CORE-370 right now which is some refactoring of the code to propagate errors correctly, I am currently going through and validating all such async APIs to make sure they aren't inadvertently producing unhandled errors as in this case so this will be resolved in the next release. Rob From: Rob Vesse <rv...@do...> Reply-To: dotNetRDF User Help and Support <dot...@li...> Date: Thursday, July 11, 2013 1:44 PM To: dotNetRDF User Help and Support <dot...@li...> Subject: Re: [dotNetRDF-Support] Querying Endpoint via Silverlight > Martin > > Just tried this with latest code and think I see what the issue is, I think it > pertains to making cross domain requests which is restricted by default in > Silverlight. See > http://msdn.microsoft.com/en-us/library/cc197955(v=vs.95).aspx for how to > enable this. > > It looks like the code gets a SecurityException from the Silverlight Runtime > which is what causes the apparent hang since the error is unhandled and as > it's on a background thread it just disappears and never propagates to the > user. I will look at making that error propagate nicely in future releases. > > Rob > > From: Rob Vesse <rv...@do...> > Reply-To: dotNetRDF User Help and Support > <dot...@li...> > Date: Thursday, July 11, 2013 10:04 AM > To: dotNetRDF User Help and Support <dot...@li...> > Subject: Re: [dotNetRDF-Support] Querying Endpoint via Silverlight > >> Hi Martin >> >> What is your code? And what is the version of dotNetRDF? >> >> The current state of the repo doesn't have a Silverlight 4 testing project >> any more so you may have a very outdated SVN checkout or an out of date >> Mercurial clone, code is in Mercurial and located at >> http://bitbucket.org/dotnetrdf/dotnetrdf these days. >> >> If the code you are using doesn't use the asynchronous variations of the >> methods then it will hang under Silverlight. Current Silverlight builds >> should not include the synchronous API at all. This functionality should >> work since it was added and tested as part of CORE-55 >> (http://www.dotnetrdf.org/tracker/Issues/IssueDetail.aspx?id=55) way back in >> August 2011 and included in 0.5.0 >> >> Rob >> >> From: Martin Bradford Gago <m.b...@ic...> >> Reply-To: dotNetRDF User Help and Support >> <dot...@li...> >> Date: Thursday, July 11, 2013 2:01 AM >> To: <dot...@li...> >> Subject: [dotNetRDF-Support] Querying Endpoint via Silverlight >> >>> Hi everyone, >>> I wondered if someone had a working example of the queryWithResultSet method >>> in the Silverlight 4 build of DotNetRdf? I tried running the testing project >>> for Silverlight 4 in the source code (changing the endpoint to dbPedia it >>> was a line commented out in the original code) and it is hanging on me. I >>> also tried against my own repositories with similar results. >>> >>> Thanks, >>> Martin BG >>> ---------------------------------------------------------------------------- >>> -- See everything from the browser to the database with AppDynamics Get >>> end-to-end visibility with application monitoring from AppDynamics Isolate >>> bottlenecks and diagnose root cause in seconds. Start your free trial of >>> AppDynamics Pro today! >>> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk_ >>> ______________________________________________ dotNetRDF-Support mailing >>> list >>> dot...@li...https://lists.sourceforge.net/lists/l >>> istinfo/dotnetrdf-support >> ----------------------------------------------------------------------------- >> - See everything from the browser to the database with AppDynamics Get >> end-to-end visibility with application monitoring from AppDynamics Isolate >> bottlenecks and diagnose root cause in seconds. Start your free trial of >> AppDynamics Pro today! >> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk__ >> _____________________________________________ dotNetRDF-Support mailing list >> dot...@li...https://lists.sourceforge.net/lists/li >> stinfo/dotnetrdf-support > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics Get > end-to-end visibility with application monitoring from AppDynamics Isolate > bottlenecks and diagnose root cause in seconds. Start your free trial of > AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk___ > ____________________________________________ dotNetRDF-Support mailing list > dot...@li... > https://lists.sourceforge.net/lists/listinfo/dotnetrdf-support |
From: Rob V. <rv...@do...> - 2013-07-11 20:45:15
|
Martin Just tried this with latest code and think I see what the issue is, I think it pertains to making cross domain requests which is restricted by default in Silverlight. See http://msdn.microsoft.com/en-us/library/cc197955(v=vs.95).aspx for how to enable this. It looks like the code gets a SecurityException from the Silverlight Runtime which is what causes the apparent hang since the error is unhandled and as it's on a background thread it just disappears and never propagates to the user. I will look at making that error propagate nicely in future releases. Rob From: Rob Vesse <rv...@do...> Reply-To: dotNetRDF User Help and Support <dot...@li...> Date: Thursday, July 11, 2013 10:04 AM To: dotNetRDF User Help and Support <dot...@li...> Subject: Re: [dotNetRDF-Support] Querying Endpoint via Silverlight > Hi Martin > > What is your code? And what is the version of dotNetRDF? > > The current state of the repo doesn't have a Silverlight 4 testing project any > more so you may have a very outdated SVN checkout or an out of date Mercurial > clone, code is in Mercurial and located at > http://bitbucket.org/dotnetrdf/dotnetrdf these days. > > If the code you are using doesn't use the asynchronous variations of the > methods then it will hang under Silverlight. Current Silverlight builds > should not include the synchronous API at all. This functionality should work > since it was added and tested as part of CORE-55 > (http://www.dotnetrdf.org/tracker/Issues/IssueDetail.aspx?id=55) way back in > August 2011 and included in 0.5.0 > > Rob > > From: Martin Bradford Gago <m.b...@ic...> > Reply-To: dotNetRDF User Help and Support > <dot...@li...> > Date: Thursday, July 11, 2013 2:01 AM > To: <dot...@li...> > Subject: [dotNetRDF-Support] Querying Endpoint via Silverlight > >> Hi everyone, >> I wondered if someone had a working example of the queryWithResultSet method >> in the Silverlight 4 build of DotNetRdf? I tried running the testing project >> for Silverlight 4 in the source code (changing the endpoint to dbPedia it >> was a line commented out in the original code) and it is hanging on me. I >> also tried against my own repositories with similar results. >> >> Thanks, >> Martin BG >> ----------------------------------------------------------------------------- >> - See everything from the browser to the database with AppDynamics Get >> end-to-end visibility with application monitoring from AppDynamics Isolate >> bottlenecks and diagnose root cause in seconds. Start your free trial of >> AppDynamics Pro today! >> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk__ >> _____________________________________________ dotNetRDF-Support mailing list >> dot...@li...https://lists.sourceforge.net/lists/li >> stinfo/dotnetrdf-support > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics Get > end-to-end visibility with application monitoring from AppDynamics Isolate > bottlenecks and diagnose root cause in seconds. Start your free trial of > AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk___ > ____________________________________________ dotNetRDF-Support mailing list > dot...@li... > https://lists.sourceforge.net/lists/listinfo/dotnetrdf-support |
From: Rob V. <rv...@do...> - 2013-07-11 17:05:33
|
Hi Martin What is your code? And what is the version of dotNetRDF? The current state of the repo doesn't have a Silverlight 4 testing project any more so you may have a very outdated SVN checkout or an out of date Mercurial clone, code is in Mercurial and located at http://bitbucket.org/dotnetrdf/dotnetrdf these days. If the code you are using doesn't use the asynchronous variations of the methods then it will hang under Silverlight. Current Silverlight builds should not include the synchronous API at all. This functionality should work since it was added and tested as part of CORE-55 (http://www.dotnetrdf.org/tracker/Issues/IssueDetail.aspx?id=55) way back in August 2011 and included in 0.5.0 Rob From: Martin Bradford Gago <m.b...@ic...> Reply-To: dotNetRDF User Help and Support <dot...@li...> Date: Thursday, July 11, 2013 2:01 AM To: <dot...@li...> Subject: [dotNetRDF-Support] Querying Endpoint via Silverlight > Hi everyone, > I wondered if someone had a working example of the queryWithResultSet method > in the Silverlight 4 build of DotNetRdf? I tried running the testing project > for Silverlight 4 in the source code (changing the endpoint to dbPedia it > was a line commented out in the original code) and it is hanging on me. I also > tried against my own repositories with similar results. > > Thanks, > Martin BG > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics Get > end-to-end visibility with application monitoring from AppDynamics Isolate > bottlenecks and diagnose root cause in seconds. Start your free trial of > AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk___ > ____________________________________________ dotNetRDF-Support mailing list > dot...@li... > https://lists.sourceforge.net/lists/listinfo/dotnetrdf-support |
From: Martin B. G. <m.b...@ic...> - 2013-07-11 09:02:06
|
Hi everyone, I wondered if someone had a working example of the queryWithResultSet method in the Silverlight 4 build of DotNetRdf? I tried running the testing project for Silverlight 4 in the source code (changing the endpoint to dbPedia - it was a line commented out in the original code) and it is hanging on me. I also tried against my own repositories with similar results. Thanks, Martin BG |
From: Rob V. <rv...@do...> - 2013-05-07 22:48:04
|
Hi All Some of you may already have seen the announcement via other channels but dotNetRDF 1.0.0 has finally been released as of yesterday. It is available via all the normal channels website, SourceForge, BitBucket, CodePlex and NuGet. You can view the full release announcement on our blog at http://www.dotnetrdf.org/blogitem.asp?blogID=75 Highlights of this release include a variety of performance and bug fixes but also some minor new features: * Full support for the W3C Candidate Recommendation for Turtle (Feb 19th 2013) * New instance mode for simplified Configuration API usage * New ReadWriteSparqlConnector for connecting to arbitrary triple stores which provide both a Query and Update endpoint I personally would like to reiterate a huge thank you to both our developers and everyone in the community who has contributed to the project in any shape or form. You guys have helped make dotNetRDF what is today and grow from an academic side project to the de factor standard for developing RDF and SPARQL applications on the .Net Platform. Thanks for all your contributions and I hope many of you will continue to contribute as we move forward with dotNetRDF, we have some cool new features planned which we hope to start getting in your hands soon! Rob Vesse |
From: altaf h. <alt...@ya...> - 2013-05-07 17:34:46
|
Hi Rob, Thank you Very much Rob. Your explanation makes sense. I already Did that and Working fine. Actually, at first I did an workaround by adding an individual ( Making it an RDF). Later Did by adding Resource using addType() using OntologyHelper.OwlClass OntologyClass ontologyClass = ontologyGraph.CreateOntologyClass(new Uri(ontologyGraph.BaseUri +className)); OntologyResource ontologyClassResource = ontologyGraph.CreateOntologyResource(new Uri(OntologyHelper.OwlClass)); ontologyClass.AddType(ontologyClassResource); Thank You again. Kind Regards, Altaf Hussain Graduate Student Researcher Centre for Logic and Information ________________________________ From: Rob Vesse <rv...@do...> To: altaf hussain <alt...@ya...>; dotNetRDF User Help and Support <dot...@li...> Sent: Tuesday, May 7, 2013 1:51 PM Subject: Re: [dotNetRDF-Support] Creating Ontology from DOTNETRDF, without loading one The CreateOntologyClass() method does not actually create a class in the graph per se, in this way it functions identically to the CreateXNode() type methods since it merely returns an instance that can then be used to add data to the graph. Regardless we can't automatically add a type declaration for your class because we don't know whether you are working in OWL/RDFS/something else entirely. As a rule unless you have called AddX(), ClearX() or RemoveX() on any Ontology API class nothing has actually been changed in the underlying graph. In your specific example after you create your OntologyClass instance you can call the AddType() method to add an actual type declaration to the underlying graph. Hope this helps, Rob From: altaf hussain <alt...@ya...> Reply-To: altaf hussain <alt...@ya...>, dotNetRDF User Help and Support <dot...@li...> Date: Sunday, May 5, 2013 6:06 PM To: <dot...@li...> Subject: [dotNetRDF-Support] Creating Ontology from DOTNETRDF, without loading one > > Hi, I was trying to create an ontology from the scratch but when creating new OntologyClass Using OntologyGraph.CreateOntologyClass it not actually reflecting in the graph when I write using WriteRdfXml. > > >1) I have a List<String> of Classes and then using the following class to create Ontology: > public class DB2OntoBusiness >> { >> public static OntologyGraph ontologyGraph = new OntologyGraph(); >> >> >> public static void InitializeOntologyGraph() >> { >> ontologyGraph.BaseUri = new Uri("http://altaf.cli.com/PatientOntology/"); >> ontologyGraph.NamespaceMap.AddNamespace("PO", new Uri("http://altaf.cli.com/PatientOntology/")); >> } > //Calling this method >>> public void ClassAssertions2() >> { >>> InitializeOntologyGraph(); >> List<string> classes = GetClasses();// Admission, Patient, PatientDetails, Hospital >> foreach (String className in classes) >> { >>> OntologyClass owlClass = ontologyGraph.CreateOntologyClass(new Uri("http://www.w3.org/2002/07/owl" + "/" + className)); >> } >> WriteOntologyFile(); >> } >>> public void WriteOntologyFile() >>> { >>> //ontologyGraph.SaveToFile(HttpContext.Current.Server.MapPath("./ConvertedOntology/DBOntology.owl")); >>> >>> >>> RdfXmlWriter rdfxmlwriter = new RdfXmlWriter(); >>> rdfxmlwriter.Save(ontologyGraph, HttpContext.Current.Server.MapPath("./ConvertedOntology/DBOntology.rdf")); >>> } >>> >>> >>>THE OUTPUT FILE : There is no class asserted in the RDF file: >>><?xml version="1.0" encoding="utf-8"?> >>><!DOCTYPE rdf:RDF [ >>> <!ENTITY rdf 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'> >>> <!ENTITY rdfs 'http://www.w3.org/2000/01/rdf-schema#'> >>> <!ENTITY xsd 'http://www.w3.org/2001/XMLSchema#'> >>> <!ENTITY owl 'http://www.w3.org/2002/07/owl#'> >>> <!ENTITY PO 'http://altaf.cli.com/PatientOntology/'> >>>]> >>><rdf:RDF xml:base="http://altaf.cli.com/PatientOntology/" >>> xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" >>> xmlns:xsd="http://www.w3.org/2001/XMLSchema#" >>> xmlns:owl="http://www.w3.org/2002/07/owl#" >>> xmlns:PO="http://altaf.cli.com/PatientOntology/" >>> xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" /> >>> >>> >>> >>> >>>How could I include the classes in the ontology. Am I Missing Something?? >Kind Regards, > > >Altaf Hussain >Graduate Student Researcher >Centre for Logic and Information > > >Graduate Student (CS) and Teaching Assistant >St. Francis Xavier University > >Alumni' 02 Batch, Dept. of Computer Science and Engineering >Shah Jalal University of Science and Technology > > >Blog: http://altafhussainbd.wordpress.com > >------------------------------------------------------------------------------ Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET Get 100% visibility into your production application - at no cost. Code-level diagnostics for performance bottlenecks with <2% overhead Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap1_______________________________________________ dotNetRDF-Support mailing list dot...@li... https://lists.sourceforge.net/lists/listinfo/dotnetrdf-support |
From: Rob V. <rv...@do...> - 2013-05-07 16:52:55
|
The CreateOntologyClass() method does not actually create a class in the graph per se, in this way it functions identically to the CreateXNode() type methods since it merely returns an instance that can then be used to add data to the graph. Regardless we can't automatically add a type declaration for your class because we don't know whether you are working in OWL/RDFS/something else entirely. As a rule unless you have called AddX(), ClearX() or RemoveX() on any Ontology API class nothing has actually been changed in the underlying graph. In your specific example after you create your OntologyClass instance you can call the AddType() method to add an actual type declaration to the underlying graph. Hope this helps, Rob From: altaf hussain <alt...@ya...> Reply-To: altaf hussain <alt...@ya...>, dotNetRDF User Help and Support <dot...@li...> Date: Sunday, May 5, 2013 6:06 PM To: <dot...@li...> Subject: [dotNetRDF-Support] Creating Ontology from DOTNETRDF, without loading one > > Hi, I was trying to create an ontology from the scratch but when creating new > OntologyClass Using OntologyGraph.CreateOntologyClass it not actually > reflecting in the graph when I write using WriteRdfXml. > > 1) I have a List<String> of Classes and then using the following class to > create Ontology: >> public class DB2OntoBusiness >> { >> public static OntologyGraph ontologyGraph = new OntologyGraph(); >> >> public static void InitializeOntologyGraph() >> { >> ontologyGraph.BaseUri = new >> Uri("http://altaf.cli.com/PatientOntology/"); >> ontologyGraph.NamespaceMap.AddNamespace("PO", new >> Uri("http://altaf.cli.com/PatientOntology/")); >> } >>> //Calling this method >>> public void ClassAssertions2() >>> { >>> InitializeOntologyGraph(); >>> List<string> classes = GetClasses();// Admission, Patient, >>> PatientDetails, Hospital >>> foreach (String className in classes) >>> { >>> OntologyClass owlClass = >>> ontologyGraph.CreateOntologyClass(new Uri("http://www.w3.org/2002/07/owl" + >>> "/" + className)); >>> } >>> WriteOntologyFile(); >>> } >>> public void WriteOntologyFile() >>> { >>> >>> //ontologyGraph.SaveToFile(HttpContext.Current.Server.MapPath("./ConvertedOn >>> tology/DBOntology.owl")); >>> >>> RdfXmlWriter rdfxmlwriter = new RdfXmlWriter(); >>> rdfxmlwriter.Save(ontologyGraph, >>> HttpContext.Current.Server.MapPath("./ConvertedOntology/DBOntology.rdf")); >>> } >>> >>> THE OUTPUT FILE : There is no class asserted in the RDF file: >>> <?xml version="1.0" encoding="utf-8"?> >>> <!DOCTYPE rdf:RDF [ >>> <!ENTITY rdf 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'> >>> <!ENTITY rdfs 'http://www.w3.org/2000/01/rdf-schema#'> >>> <!ENTITY xsd 'http://www.w3.org/2001/XMLSchema#'> >>> <!ENTITY owl 'http://www.w3.org/2002/07/owl#'> >>> <!ENTITY PO 'http://altaf.cli.com/PatientOntology/'> >>> ]> >>> <rdf:RDF xml:base="http://altaf.cli.com/PatientOntology/" >>> xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" >>> xmlns:xsd="http://www.w3.org/2001/XMLSchema#" >>> xmlns:owl="http://www.w3.org/2002/07/owl#" >>> xmlns:PO="http://altaf.cli.com/PatientOntology/" >>> xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" /> >>> >>> >>> How could I include the classes in the ontology. Am I Missing Something?? > Kind Regards, > > Altaf Hussain > Graduate Student Researcher > Centre for Logic and Information <http://logic.stfx.ca/about> > > Graduate Student (CS) and Teaching Assistant > St. Francis Xavier University <http://stfx.ca/> > > Alumni' 02 Batch, Dept. of Computer Science and Engineering > Shah Jalal University of Science and Technology <http://www.sust.edu/> > > Blog: http://altafhussainbd.wordpress.com > <http://altafhussainbd.wordpress.com/> > > ------------------------------------------------------------------------------ > Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET Get > 100% visibility into your production application - at no cost. Code-level > diagnostics for performance bottlenecks with <2% overhead Download for free > and get started troubleshooting in minutes. > http://p.sf.net/sfu/appdyn_d2d_ap1____________________________________________ > ___ dotNetRDF-Support mailing list dot...@li... > https://lists.sourceforge.net/lists/listinfo/dotnetrdf-support |
From: altaf h. <alt...@ya...> - 2013-05-06 01:06:21
|
Hi, I was trying to create an ontology from the scratch but when creating new OntologyClass Using OntologyGraph.CreateOntologyClass it not actually reflecting in the graph when I write using WriteRdfXml. 1) I have a List<String> of Classes and then using the following class to create Ontology: public class DB2OntoBusiness > { > public static OntologyGraph ontologyGraph = new OntologyGraph(); > > > public static void InitializeOntologyGraph() > { > ontologyGraph.BaseUri = new Uri("http://altaf.cli.com/PatientOntology/"); > ontologyGraph.NamespaceMap.AddNamespace("PO", new Uri("http://altaf.cli.com/PatientOntology/")); > } //Calling this method >> public void ClassAssertions2() > { >> InitializeOntologyGraph(); > List<string> classes = GetClasses();// Admission, Patient, PatientDetails, Hospital > foreach (String className in classes) > { >> OntologyClass owlClass = ontologyGraph.CreateOntologyClass(new Uri("http://www.w3.org/2002/07/owl" + "/" + className)); > } > WriteOntologyFile(); > } >> public void WriteOntologyFile() >> { >> //ontologyGraph.SaveToFile(HttpContext.Current.Server.MapPath("./ConvertedOntology/DBOntology.owl")); >> >> >> RdfXmlWriter rdfxmlwriter = new RdfXmlWriter(); >> rdfxmlwriter.Save(ontologyGraph, HttpContext.Current.Server.MapPath("./ConvertedOntology/DBOntology.rdf")); >> } >> >> >>THE OUTPUT FILE : There is no class asserted in the RDF file: >><?xml version="1.0" encoding="utf-8"?> >><!DOCTYPE rdf:RDF [ >> <!ENTITY rdf 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'> >> <!ENTITY rdfs 'http://www.w3.org/2000/01/rdf-schema#'> >> <!ENTITY xsd 'http://www.w3.org/2001/XMLSchema#'> >> <!ENTITY owl 'http://www.w3.org/2002/07/owl#'> >> <!ENTITY PO 'http://altaf.cli.com/PatientOntology/'> >>]> >><rdf:RDF xml:base="http://altaf.cli.com/PatientOntology/" >> xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" >> xmlns:xsd="http://www.w3.org/2001/XMLSchema#" >> xmlns:owl="http://www.w3.org/2002/07/owl#" >> xmlns:PO="http://altaf.cli.com/PatientOntology/" >> xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" /> >> >> >> >> >>How could I include the classes in the ontology. Am I Missing Something?? Kind Regards, Altaf Hussain Graduate Student Researcher Centre for Logic and Information Graduate Student (CS) and Teaching Assistant St. Francis Xavier University Alumni' 02 Batch, Dept. of Computer Science and Engineering Shah Jalal University of Science and Technology Blog: http://altafhussainbd.wordpress.com |
From: Rob V. <rv...@do...> - 2013-04-30 23:44:17
|
From: "Steve ." <mo...@ho...> Date: Tuesday, April 30, 2013 4:24 PM To: "tr...@do..." <tr...@do...> Subject: Trust Center for MIT Entrepreneurship Hackathon this Weekend in Boston > i just got invited to participate in this event > http://hackingmedicine.mit.edu/ <http://hackingmedicine.mit.edu/> in Boston > this week-end -- a hackathon with MIT involvement -- apps need to be related > to healthcare -- Anyone with expertise / interest in that subject area with a > good grasp of RDF / SPARQL ./ RDFA programming ( looking for a front-end > developer - Jquery / CSS ninja too) -- please get in touch with me. > > Could be 3 different team members ... > > * Health care SME with Semantic Web skills > * RDF / SPARQL developer > * Front-end developer > Networking / Social event Friday in Boston > Sat, Sun hackathon in Watertown > > In the above scenario I would be writing middleware that talks to the RDF > server and using an MVC framework supplies ViewModel data transfer objects to > the front end. Also would be working with Protege to develop ontology and > create instances. > > Happy to take phone calls any time -- responses to this message as well. > > Thanks ! > > Steve > 917 602-3777 > |
From: Rob V. <rv...@do...> - 2013-04-19 21:08:43
|
Hi Thomas I have written up a test case which tries to reproduce more what you describe if you can take a look at https://bitbucket.org/dotnetrdf/dotnetrdf/src/663e8c178056/Testing/unittest/ Query/RemoteEndpoints.cs?at=default#cl-182 and let me know if that roughly resembles your code that would be useful to know Even with this I can't reproduce anything that looks like a memory leak, if you are able to provide a minimal code sample that does reproduce your issue it would be much appreciated Rob From: Thomas Francart <tho...@sp...> Reply-To: dotNetRDF User Help and Support <dot...@li...> Date: Tuesday, April 16, 2013 12:28 AM To: <dot...@li...> Cc: Eric Canadas <eri...@jo...> Subject: Re: [dotNetRDF-Support] Memory Leak with SparqlRemoteEndpoint against Sesame repository ? > Rob > > Thank you very much for getting back to us on this. It is good to know at > least that you don't see anything wrong in the first code snippet. It is hard > for us to provide a self-contained application reproducing the error; we'll > see what we can do, but here are some more information that may help : > * actually the code is iterating and does an insert + a query for each > iteration; so [insert + query with SparqlRemoteEndpoint] leads to OOM, while > [insert + query with SesameHttpProtocolVersion6Connector] does not; > * the query is indeed built with some input (a URI) and changes every time > (every query is different); > * the sesame repo. is fairly small (in the order of magnitude of 10000 > triples), and each query should return between 1 and 20 rows approximatively; > I'll get back to you with more detailled information If I can. > > Thomas >> >> Hi Tom and Eric >> >> I don't see anything obviously wrong with the first code snippet versus the >> second code snippet. Both use very similar code behind the scenes so I >> don't see any obvious reason why the first leads to a OOM error and the >> second does not. >> >> results.Dispose() will not immediately free any memory, it just releases >> references to other managed objects that the SparqlResultSet instance is >> holding so memory usage will only drop when the garbage collector runs. If >> your results are relatively small then memory usage will be negligible >> anyway. >> >> I tried to write a simple repo as a command line application (code attached) >> and ran it under a profiler for several prolonged period (15 minutes or so >> each time) and memory usage stayed pretty constant throughout and I saw no >> obvious signs of memory leak. >> >> So I need some more information from you guys if I am to debug this further: >> * Do you have a stack trace for the OOM? >> * How long does it take to hit the OOM in your tests? >> * How much data is in your repository? Are you able to provide a copy of >> this data? (you can send it to me off-list if it cannot be shared publicly) >> * What is the exact query being run? You are building a query from some >> inputs, does the query change each time or stay constant? >> * How many results are you returning from each query? >> What would be really nice is if you could provide a complete minimal example >> I.e. a complete working command line application with data, query and code >> that reliably reproduces the problem >> >> Regards, >> >> Rob > > > -- > > Thomas Francart - Sparna > Consultant Indépendant > Data, Sémantique, Contenus, Connaissances > web : http://sparna.fr, blog : http://francart.fr > Tel : +33 (0)6.71.11.25.97 <tel:%2B33%20%280%296.71.11.25.97> > Fax : +33 (0)9.58.16.17.14 <tel:%2B33%20%280%299.58.16.17.14> > Skype : francartthomas > ------------------------------------------------------------------------------ > Precog is a next-generation analytics platform capable of advanced analytics > on semi-structured data. The platform includes APIs for building apps and a > phenomenal toolset for data science. Developers can use our toolset for easy > data analysis & visualization. Get a free account! > http://www2.precog.com/precogplatform/slashdotnewsletter______________________ > _________________________ dotNetRDF-Support mailing list > dot...@li... > https://lists.sourceforge.net/lists/listinfo/dotnetrdf-support |
From: Rob V. <rv...@do...> - 2013-04-17 22:50:26
|
Andrew I have had chance to code this up but I won't integrate it for 1.0.0 because it's a brand new feature and too close to the release If you have time to test it out you can find this in the CORE-346 branch - https://bitbucket.org/dotnetrdf/dotnetrdf/commits/all/tip/branch%28%22CORE-3 46%22%29 Best Regards, Rob Vesse From: Andrew Matthews <mat...@gm...> Reply-To: dotNetRDF User Help and Support <dot...@li...> Date: Sunday, April 7, 2013 4:50 PM To: <dot...@li...> Subject: [dotNetRDF-Support] BigData compatibility question (x-post from SemanticOverflow.com) > Hi, > I'm having a look at BigData and would like to use it within dotNetRdf. I > currently use the PersistentTripleStore class as the way to access my (Sesame+ > OWLIM) triple store. But it seems that using bigdata's restful API is not > currently compatible with Read/Write use through dotNetRdf. I'm hoping that it > is once again an existing capability that I have not been able to deduce from > the API. > If that's not the case, what do I do to extend the API to support the BigData > NanoSparqlServer (or - more generally - any API that supports the SPARQL 1.1 > Protocol for both query and update)? Excuse the terrible formatting below, but > you'll find below listed the capabilities of the service (or what it reports > about its capabilities). It seems to have everything needed to allow the > creation of something like a Read/Write SparqlConnector, I just don't know > where to begin. What are the framework hoops I must jump through to implement > such a connector? I assumed it would involve deriving from both > SparqlConnector and IUpdateableStorage, but the SparqlRemoteEndpoint param to > the SparqlConnector ctor doesn't support Update queries... > Further details on: . . . > /using-dotnetrdf-with-updateable-store-through-sparql-11-protocol > <http://answers.semanticweb.com/questions/22043/using-dotnetrdf-with-updateabl > e-store-through-sparql-11-protocol> > > Best Wishes, > > Andrew Matthews > ------------------------------------------------------------------------------ > Minimize network downtime and maximize team effectiveness. Reduce network > management and security costs.Learn how to hire the most talented Cisco > Certified professionals. Visit the Employer Resources Portal > http://www.cisco.com/web/learning/employer_resources/index.html_______________ > ________________________________ dotNetRDF-Support mailing list > dot...@li... > https://lists.sourceforge.net/lists/listinfo/dotnetrdf-support |
From: Rob V. <rv...@do...> - 2013-04-17 16:36:32
|
The TriG specification you link to was only published 8 days ago, funnily enough we haven't implemented it yet! It won't be in the 1.0.0 release which will hopefully be out later this week, this is currently tracked as CORE-314 [1] and slated for 1.0.1 Rob [1] http://dotnetrdf.org/tracker/Issues/IssueDetail.aspx?id=314 From: Andrew Matthews <mat...@gm...> Reply-To: dotNetRDF User Help and Support <dot...@li...> Date: Wednesday, April 17, 2013 3:54 AM To: <dot...@li...> Subject: [dotNetRDF-Support] Probable TriGParser bug relating to escaped characters > I'm getting a parse error in the TriG parser for the following kind of > fragment: > > @prefix dbpr: <http://dbpedia.org/resource/>. > { > sk:AspNet sk:kindOf sk:webFramework ; > sk:dbpIdentity dbpr:ASP\.NET . > } > > The TriG grammar indicates that escape characters should be allowed in Local > Names > <http://www.w3.org/TR/2013/WD-trig-20130409/#grammar-production-PN_LOCAL_ESC> > . > > Here's the exception I get: > > VDS.RDF.Parsing.RdfParseException was unhandled by user code > HResult=-2146233088 > Message=[Line 22 Column 32] Unexpected Character (Code 92) \ was encountered > Source=dotNetRDF > EndLine=22 > EndPosition=32 > HasPositionInformation=true > StartLine=22 > StartPosition=32 > StackTrace: > at VDS.RDF.Parsing.Tokens.TriGTokeniser.GetNextToken() > at VDS.RDF.Parsing.Tokens.BufferedTokenQueue.BufferInternal() > at VDS.RDF.Parsing.Tokens.BufferedTokenQueue.Peek() > at VDS.RDF.Parsing.TriGParser.TryParseObjectList(TriGParserContext > context, Uri graphUri, INode subj, INode pred) > at > VDS.RDF.Parsing.TriGParser.TryParsePredicateObjectList(TriGParserContext > context, Uri graphUri, INode subj) > at VDS.RDF.Parsing.TriGParser.TryParseTriples(TriGParserContext > context, Uri graphUri) > at VDS.RDF.Parsing.TriGParser.TryParseGraph(TriGParserContext context) > at VDS.RDF.Parsing.TriGParser.Parse(TriGParserContext context) > at VDS.RDF.Parsing.TriGParser.Load(IRdfHandler handler, TextReader > input) > at Panama.DataAccess.Repositories.AdminRepository.LoadTestData() in > e:\dev\panama\Solutions\Panama.DataAccess\Repositories\AdminRepository.cs:line > 271 > at > Panama.DataAccess.Repositories.AdminRepository.SetupTestEnvironment() in > e:\dev\panama\Solutions\Panama.DataAccess\Repositories\AdminRepository.cs:line > 65 > at > Panama.Tests.Panama.DataAccess.SkillRepositoryTests.TestFixtureSetup() in > e:\dev\panama\Solutions\Panama.Tests\Panama.DataAccess\SkillRepositoryTests.cs > :line 22 > InnerException: > > Regards, > >> Andrew > ------------------------------------------------------------------------------ > Precog is a next-generation analytics platform capable of advanced analytics > on semi-structured data. The platform includes APIs for building apps and a > phenomenal toolset for data science. Developers can use our toolset for easy > data analysis & visualization. Get a free account! > http://www2.precog.com/precogplatform/slashdotnewsletter______________________ > _________________________ dotNetRDF-Support mailing list > dot...@li... > https://lists.sourceforge.net/lists/listinfo/dotnetrdf-support |
From: Andrew M. <mat...@gm...> - 2013-04-17 10:54:48
|
I'm getting a parse error in the TriG parser for the following kind of fragment: @prefix dbpr: <http://dbpedia.org/resource/>. { sk:AspNet sk:kindOf sk:webFramework ; sk:dbpIdentity dbpr:ASP\.NET . } The TriG grammar indicates that escape characters should be allowed in Local Names<http://www.w3.org/TR/2013/WD-trig-20130409/#grammar-production-PN_LOCAL_ESC> . Here's the exception I get: VDS.RDF.Parsing.RdfParseException was unhandled by user code HResult=-2146233088 Message=[Line 22 Column 32] Unexpected Character (Code 92) \ was encountered Source=dotNetRDF EndLine=22 EndPosition=32 HasPositionInformation=true StartLine=22 StartPosition=32 StackTrace: at VDS.RDF.Parsing.Tokens.TriGTokeniser.GetNextToken() at VDS.RDF.Parsing.Tokens.BufferedTokenQueue.BufferInternal() at VDS.RDF.Parsing.Tokens.BufferedTokenQueue.Peek() at VDS.RDF.Parsing.TriGParser.TryParseObjectList(TriGParserContext context, Uri graphUri, INode subj, INode pred) at VDS.RDF.Parsing.TriGParser.TryParsePredicateObjectList(TriGParserContext context, Uri graphUri, INode subj) at VDS.RDF.Parsing.TriGParser.TryParseTriples(TriGParserContext context, Uri graphUri) at VDS.RDF.Parsing.TriGParser.TryParseGraph(TriGParserContext context) at VDS.RDF.Parsing.TriGParser.Parse(TriGParserContext context) at VDS.RDF.Parsing.TriGParser.Load(IRdfHandler handler, TextReader input) at Panama.DataAccess.Repositories.AdminRepository.LoadTestData() in e:\dev\panama\Solutions\Panama.DataAccess\Repositories\AdminRepository.cs:line 271 at Panama.DataAccess.Repositories.AdminRepository.SetupTestEnvironment() in e:\dev\panama\Solutions\Panama.DataAccess\Repositories\AdminRepository.cs:line 65 at Panama.Tests.Panama.DataAccess.SkillRepositoryTests.TestFixtureSetup() in e:\dev\panama\Solutions\Panama.Tests\Panama.DataAccess\SkillRepositoryTests.cs:line 22 InnerException: Regards, *Andrew* |
From: Thomas F. <tho...@sp...> - 2013-04-17 07:39:53
|
Thank you for your answer Rob Using the + operator is OK for us. I take good note of your comment regarding ARQ as a reference implementation. By comparing with Sesame I did not considered it as a reference implementation, it is just that it was easy for us to compare since we had Sesame installed and loaded with data. I will ask the Sesame's developpers regarding the first query since you mention dotnetrdf produces the expected result (what to expect in that case is not cristal clear when reading the spec). Thanks Thomas 2013/4/16 <dot...@li...> > Send dotNetRDF-Support mailing list submissions to > dot...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/dotnetrdf-support > or, via email, send a message with subject or body 'help' to > dot...@li... > > You can reach the person managing the list at > dot...@li... > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of dotNetRDF-Support digest..." > > > Today's Topics: > > 1. Re: Memory Leak with SparqlRemoteEndpoint against Sesame > repository ? (Thomas Francart) > 2. SPARQL 1.1 *-operator unexpected behavior (Thomas Francart) > 3. Re: SPARQL 1.1 *-operator unexpected behavior (Rob Vesse) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Tue, 16 Apr 2013 09:28:56 +0200 > From: Thomas Francart <tho...@sp...> > Subject: Re: [dotNetRDF-Support] Memory Leak with SparqlRemoteEndpoint > against Sesame repository ? > To: dot...@li... > Cc: Eric Canadas <eri...@jo...> > Message-ID: > < > CAP...@ma...> > Content-Type: text/plain; charset="iso-8859-1" > > Rob > > Thank you very much for getting back to us on this. It is good to know at > least that you don't see anything wrong in the first code snippet. It is > hard for us to provide a self-contained application reproducing the error; > we'll see what we can do, but here are some more information that may help > : > > - actually the code is iterating and does an insert + a query for each > iteration; so [insert + query with SparqlRemoteEndpoint] leads to OOM, > while [insert + query with SesameHttpProtocolVersion6Connector] does > not; > - the query is indeed built with some input (a URI) and changes every > time (every query is different); > - the sesame repo. is fairly small (in the order of magnitude of 10000 > triples), and each query should return between 1 and 20 rows > approximatively; > > I'll get back to you with more detailled information If I can. > > Thomas > > > > > Hi Tom and Eric > > > > I don't see anything obviously wrong with the first code snippet versus > the > > second code snippet. Both use very similar code behind the scenes so I > > don't see any obvious reason why the first leads to a OOM error and the > > second does not. > > > > results.Dispose() will not immediately free any memory, it just releases > > references to other managed objects that the SparqlResultSet instance is > > holding so memory usage will only drop when the garbage collector runs. > If > > your results are relatively small then memory usage will be negligible > > anyway. > > > > I tried to write a simple repo as a command line application (code > > attached) > > and ran it under a profiler for several prolonged period (15 minutes or > so > > each time) and memory usage stayed pretty constant throughout and I saw > no > > obvious signs of memory leak. > > > > So I need some more information from you guys if I am to debug this > > further: > > * Do you have a stack trace for the OOM? > > * How long does it take to hit the OOM in your tests? > > * How much data is in your repository? Are you able to provide a copy of > > this data? (you can send it to me off-list if it cannot be shared > publicly) > > * What is the exact query being run? You are building a query from some > > inputs, does the query change each time or stay constant? > > * How many results are you returning from each query? > > What would be really nice is if you could provide a complete minimal > > example > > I.e. a complete working command line application with data, query and > code > > that reliably reproduces the problem > > > > Regards, > > > > Rob > > > > > -- > * > * > *Thomas Francart* - Sparna > Consultant Ind?pendant > Data, S?mantique, Contenus, Connaissances > web : http://sparna.fr, blog : http://francart.fr > Tel : +33 (0)6.71.11.25.97 > Fax : +33 (0)9.58.16.17.14 > Skype : francartthomas > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > Message: 2 > Date: Tue, 16 Apr 2013 09:51:17 +0200 > From: Thomas Francart <tho...@sp...> > Subject: [dotNetRDF-Support] SPARQL 1.1 *-operator unexpected behavior > To: dot...@li... > Message-ID: > <CAPugn7U=Qp7H9RBycW-dCJTs8okzY-ZoD_+B= > MqM...@ma...> > Content-Type: text/plain; charset="iso-8859-1" > > Hi > > We have seen a strange behavior of the *-operator used with in-memory > graph. I have attached a selft-contained exemple to reproduce the problem, > here are some explanations : > > An in-memory graph is built and the following data is added : > > ex:2-wheels-vehicles a skos:Concept; > skos:narrower ex:bicyle; > skos:narrower ex:moto. > > ex:bicycle a skos:Concept; > skos:broader ex:2-wheels-vehicles. > > ex:moto a skos:Concept; > skos:broader ex:2-wheels-vehicles. > > The following query : > > - SELECT ?broader WHERE { < > http://www.exemple.com/concept/2-wheels-vehicles> a skos:Concept ; > skos:broader* ?broader . } > - returns "ex:2-wheels-vehicles" > - We could argue whether that result is consistent or not with the data, > but the same query over the same data in Sesame does _not_ produce the > same > result (it produces 0 results) > > The following query : > > - SELECT ?concept ?broader WHERE { ?concept a skos:Concept ; > skos:broader* ?broader . } > - returns : > - http://www.ewemple.com/concept/2-wheels-vehicles => > http://www.ewemple.com/concept/2-wheels-vehicles > http://www.ewemple.com/concept/bicycle => > http://www.ewemple.com/concept/bicycle > http://www.ewemple.com/concept/moto => > http://www.ewemple.com/concept/moto > http://www.ewemple.com/concept/bicycle => > http://www.ewemple.com/concept/2-wheels-vehicles > http://www.ewemple.com/concept/moto => > http://www.ewemple.com/concept/2-wheels-vehicles > http://www.ewemple.com/concept/2-wheels-vehicles => > http://www.w3.org/2004/02/skos/core#Concept > http://www.ewemple.com/concept/2-wheels-vehicles => > http://www.ewemple.com/concept/bicycle > http://www.ewemple.com/concept/2-wheels-vehicles => > http://www.ewemple.com/concept/moto > http://www.ewemple.com/concept/bicycle => > http://www.w3.org/2004/02/skos/core#Concept > http://www.ewemple.com/concept/moto => > http://www.w3.org/2004/02/skos/core#Concept > - and that is pretty strange, especially lines 6, 7, 8, 9 and 10 of this > result list. Line 7 and 8 contradicts the intended meaning of the data > - Again, putting the same data in Sesame and running the same queries > does not produce the same results : > - concept broader > ex:2-wheels-vehicles ex:2-wheels-vehicles > ex:bicycle ex:bicycle > ex:bicycle ex:2-wheels-vehicles > ex:moto ex:moto > ex:moto ex:2-wheels-vehicles > > Using the "+" operator instead of "*" produces consistent results. > > We are using dotnetrdf 0.9.0.2110 with Framework .NET 3.5 and Sesame 2.6. > Thanks > Thomas > > -- > * > * > *Thomas Francart* - Sparna > Consultant Ind?pendant > Data, S?mantique, Contenus, Connaissances > web : http://sparna.fr, blog : http://francart.fr > Tel : +33 (0)6.71.11.25.97 > Fax : +33 (0)9.58.16.17.14 > Skype : francartthomas > -------------- next part -------------- > An HTML attachment was scrubbed... > -------------- next part -------------- > ?Imports VDS.RDF > Imports VDS.RDF.Query > > Module Module1 > > Sub Main() > Dim g As New Graph() > g.NamespaceMap.AddNamespace("skos", New Uri(" > http://www.w3.org/2004/02/skos/core#")) > g.NamespaceMap.AddNamespace("rdf", New Uri(" > http://www.w3.org/1999/02/22-rdf-syntax-ns#")) > g.Assert(New Triple(g.CreateUriNode(New Uri(" > http://www.ewemple.com/concept/2-roues")), g.CreateUriNode("rdf:type"), > g.CreateUriNode("skos:Concept"))) > g.Assert(New Triple(g.CreateUriNode(New Uri(" > http://www.ewemple.com/concept/velo")), g.CreateUriNode("rdf:type"), > g.CreateUriNode("skos:Concept"))) > g.Assert(New Triple(g.CreateUriNode(New Uri(" > http://www.ewemple.com/concept/moto")), g.CreateUriNode("rdf:type"), > g.CreateUriNode("skos:Concept"))) > g.Assert(New Triple(g.CreateUriNode(New Uri(" > http://www.ewemple.com/concept/velo")), g.CreateUriNode("skos:broader"), > g.CreateUriNode(New Uri("http://www.ewemple.com/concept/2-roues")))) > g.Assert(New Triple(g.CreateUriNode(New Uri(" > http://www.ewemple.com/concept/moto")), g.CreateUriNode("skos:broader"), > g.CreateUriNode(New Uri("http://www.ewemple.com/concept/2-roues")))) > > g.Assert(New Triple(g.CreateUriNode(New Uri(" > http://www.ewemple.com/concept/2-roues")), > g.CreateUriNode("skos:narrower"), g.CreateUriNode(New Uri(" > http://www.ewemple.com/concept/velo")))) > g.Assert(New Triple(g.CreateUriNode(New Uri(" > http://www.ewemple.com/concept/2-roues")), > g.CreateUriNode("skos:narrower"), g.CreateUriNode(New Uri(" > http://www.ewemple.com/concept/moto")))) > > Dim queryString As New SparqlParameterizedString() > queryString.Namespaces.AddNamespace("skos", New Uri(" > http://www.w3.org/2004/02/skos/core#")) > > 'Requete 1 > Console.WriteLine("Request 1 :") > queryString.CommandText = "SELECT ?broader WHERE { < > http://www.ewemple.com/concept/2-roues> a skos:Concept ; skos:broader* > ?broader . }" > Dim results1 As SparqlResultSet = g.ExecuteQuery(queryString) > If results1.Count > 0 Then > For Each result1 As SparqlResult In results1 > Console.WriteLine(result1.Value("broader").ToString) > Next > Else > Console.WriteLine("No skos:broader* for the concept") > End If > > Console.WriteLine(vbCrLf) > > 'Requete 2 > Console.WriteLine("Request 2 :") > queryString.CommandText = "SELECT ?concept ?broader WHERE { > ?concept a skos:Concept ; skos:broader* ?broader . }" > Dim results2 As SparqlResultSet = g.ExecuteQuery(queryString) > If results2.Count > 0 Then > For Each result2 As SparqlResult In results2 > Console.WriteLine(result2.Value("concept").ToString & " => > " & result2.Value("broader").ToString) > Next > Else > Console.WriteLine("No skos:broader* for the concept") > End If > Console.ReadLine() > End Sub > > End Module > > ------------------------------ > > Message: 3 > Date: Tue, 16 Apr 2013 09:53:58 -0700 > From: Rob Vesse <rv...@do...> > Subject: Re: [dotNetRDF-Support] SPARQL 1.1 *-operator unexpected > behavior > To: dotNetRDF User Help and Support > <dot...@li...> > Message-ID: <CD92CBB5.202CF%rv...@do...> > Content-Type: text/plain; charset="iso-8859-1" > > Hi Thomas > > I would suggest that if you need a reference SPARQL 1.1 implementation to > compare any possible bugs in dotNetRDF against you use ARQ from the Apache > Jena project since that is essentially the reference implementation, is > written by one of the specification editors and historically has been much > more accurate to the specification than Sesame has. > > Case 1 while strange is in line with the SPARQL specification, it stems > from > the slightly strange definition of * which includes the results of the zero > length path which in an example like this is the node you start from. I > verified that ARQ will produce the same result. > > Case 2 looks like we have a bug, given the caveats around the zero length > paths and the fact that the + operator works correctly for you I would > suggest always using the + operator. I have filed a bug for the * case but > this will not get fixed for the next release ? see CORE-349 [1], the > recommended workaround will be to use the + operator instead > > Rob > > [1] http://dotnetrdf.org/tracker/Issues/IssueDetail.aspx?id=349 > > From: Thomas Francart <tho...@sp...> > Reply-To: dotNetRDF User Help and Support > <dot...@li...> > Date: Tuesday, April 16, 2013 12:51 AM > To: <dot...@li...> > Subject: [dotNetRDF-Support] SPARQL 1.1 *-operator unexpected behavior > > > Hi > > > > We have seen a strange behavior of the *-operator used with in-memory > graph. I > > have attached a selft-contained exemple to reproduce the problem, here > are > > some explanations : > > > > An in-memory graph is built and the following data is added : > > > > ex:2-wheels-vehicles a skos:Concept; > > skos:narrower ex:bicyle; > > skos:narrower ex:moto. > > > > ex:bicycle a skos:Concept; > > skos:broader ex:2-wheels-vehicles. > > > > ex:moto a skos:Concept; > > skos:broader ex:2-wheels-vehicles. > > > > The following query : > > * SELECT ?broader WHERE { < > http://www.exemple.com/concept/2-wheels-vehicles> a > > skos:Concept ; skos:broader* ?broader . } > > * returns "ex:2-wheels-vehicles" > > * We could argue whether that result is consistent or not with the data, > but > > the same query over the same data in Sesame does _not_ produce the same > result > > (it produces 0 results) > > > > The following query : > > * SELECT ?concept ?broader WHERE { ?concept a skos:Concept ; > skos:broader* > > ?broader . } > > * returns : > >> * http://www.ewemple.com/concept/2-wheels-vehicles => > >> http://www.ewemple.com/concept/2-wheels-vehicles > >> * http://www.ewemple.com/concept/bicycle => > >> http://www.ewemple.com/concept/bicycle > >> * http://www.ewemple.com/concept/moto => > http://www.ewemple.com/concept/moto > >> * http://www.ewemple.com/concept/bicycle => > >> http://www.ewemple.com/concept/2-wheels-vehicles > >> * http://www.ewemple.com/concept/moto => > >> http://www.ewemple.com/concept/2-wheels-vehicles > >> * http://www.ewemple.com/concept/2-wheels-vehicles => > >> http://www.w3.org/2004/02/skos/core#Concept > >> * http://www.ewemple.com/concept/2-wheels-vehicles => > >> http://www.ewemple.com/concept/bicycle > >> * http://www.ewemple.com/concept/2-wheels-vehicles => > >> http://www.ewemple.com/concept/moto > >> * http://www.ewemple.com/concept/bicycle => > >> http://www.w3.org/2004/02/skos/core#Concept > >> * http://www.ewemple.com/concept/moto => > >> http://www.w3.org/2004/02/skos/core#Concept > > * and that is pretty strange, especially lines 6, 7, 8, 9 and 10 of this > > result list. Line 7 and 8 contradicts the intended meaning of the data > > * > > * Again, putting the same data in Sesame and running the same queries > does not > > produce the same results : > >> * concept broader > >> * ex:2-wheels-vehicles ex:2-wheels-vehicles > >> * ex:bicycle ex:bicycle > >> * ex:bicycle ex:2-wheels-vehicles > >> * ex:moto ex:moto > >> * ex:moto ex:2-wheels-vehicles > > > > Using the "+" operator instead of "*" produces consistent results. > > > > We are using dotnetrdf 0.9.0.2110 with Framework .NET 3.5 and Sesame 2.6. > > Thanks > > Thomas > > > > -- > > > > Thomas Francart - Sparna > > Consultant Ind?pendant > > Data, S?mantique, Contenus, Connaissances > > web : http://sparna.fr, blog : http://francart.fr > > Tel : +33 (0)6.71.11.25.97 > > Fax : +33 (0)9.58.16.17.14 > > Skype : francartthomas > > > ------------------------------------------------------------------------------ > > Precog is a next-generation analytics platform capable of advanced > analytics > > on semi-structured data. The platform includes APIs for building apps > and a > > phenomenal toolset for data science. Developers can use our toolset for > easy > > data analysis & visualization. Get a free account! > > > http://www2.precog.com/precogplatform/slashdotnewsletter______________________ > > _________________________ dotNetRDF-Support mailing list > > dot...@li... > > https://lists.sourceforge.net/lists/listinfo/dotnetrdf-support > > > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > > ------------------------------------------------------------------------------ > Precog is a next-generation analytics platform capable of advanced > analytics on semi-structured data. The platform includes APIs for building > apps and a phenomenal toolset for data science. Developers can use > our toolset for easy data analysis & visualization. Get a free account! > http://www2.precog.com/precogplatform/slashdotnewsletter > > ------------------------------ > > _______________________________________________ > dotNetRDF-Support mailing list > dot...@li... > https://lists.sourceforge.net/lists/listinfo/dotnetrdf-support > > > End of dotNetRDF-Support Digest, Vol 28, Issue 6 > ************************************************ > -- * * *Thomas Francart* - Sparna Consultant Indépendant Data, Sémantique, Contenus, Connaissances web : http://sparna.fr, blog : http://francart.fr Tel : +33 (0)6.71.11.25.97 Fax : +33 (0)9.58.16.17.14 Skype : francartthomas |
From: Rob V. <rv...@do...> - 2013-04-16 16:55:16
|
Hi Thomas I would suggest that if you need a reference SPARQL 1.1 implementation to compare any possible bugs in dotNetRDF against you use ARQ from the Apache Jena project since that is essentially the reference implementation, is written by one of the specification editors and historically has been much more accurate to the specification than Sesame has. Case 1 while strange is in line with the SPARQL specification, it stems from the slightly strange definition of * which includes the results of the zero length path which in an example like this is the node you start from. I verified that ARQ will produce the same result. Case 2 looks like we have a bug, given the caveats around the zero length paths and the fact that the + operator works correctly for you I would suggest always using the + operator. I have filed a bug for the * case but this will not get fixed for the next release see CORE-349 [1], the recommended workaround will be to use the + operator instead Rob [1] http://dotnetrdf.org/tracker/Issues/IssueDetail.aspx?id=349 From: Thomas Francart <tho...@sp...> Reply-To: dotNetRDF User Help and Support <dot...@li...> Date: Tuesday, April 16, 2013 12:51 AM To: <dot...@li...> Subject: [dotNetRDF-Support] SPARQL 1.1 *-operator unexpected behavior > Hi > > We have seen a strange behavior of the *-operator used with in-memory graph. I > have attached a selft-contained exemple to reproduce the problem, here are > some explanations : > > An in-memory graph is built and the following data is added : > > ex:2-wheels-vehicles a skos:Concept; > skos:narrower ex:bicyle; > skos:narrower ex:moto. > > ex:bicycle a skos:Concept; > skos:broader ex:2-wheels-vehicles. > > ex:moto a skos:Concept; > skos:broader ex:2-wheels-vehicles. > > The following query : > * SELECT ?broader WHERE { <http://www.exemple.com/concept/2-wheels-vehicles> a > skos:Concept ; skos:broader* ?broader . } > * returns "ex:2-wheels-vehicles" > * We could argue whether that result is consistent or not with the data, but > the same query over the same data in Sesame does _not_ produce the same result > (it produces 0 results) > > The following query : > * SELECT ?concept ?broader WHERE { ?concept a skos:Concept ; skos:broader* > ?broader . } > * returns : >> * http://www.ewemple.com/concept/2-wheels-vehicles => >> http://www.ewemple.com/concept/2-wheels-vehicles >> * http://www.ewemple.com/concept/bicycle => >> http://www.ewemple.com/concept/bicycle >> * http://www.ewemple.com/concept/moto => http://www.ewemple.com/concept/moto >> * http://www.ewemple.com/concept/bicycle => >> http://www.ewemple.com/concept/2-wheels-vehicles >> * http://www.ewemple.com/concept/moto => >> http://www.ewemple.com/concept/2-wheels-vehicles >> * http://www.ewemple.com/concept/2-wheels-vehicles => >> http://www.w3.org/2004/02/skos/core#Concept >> * http://www.ewemple.com/concept/2-wheels-vehicles => >> http://www.ewemple.com/concept/bicycle >> * http://www.ewemple.com/concept/2-wheels-vehicles => >> http://www.ewemple.com/concept/moto >> * http://www.ewemple.com/concept/bicycle => >> http://www.w3.org/2004/02/skos/core#Concept >> * http://www.ewemple.com/concept/moto => >> http://www.w3.org/2004/02/skos/core#Concept > * and that is pretty strange, especially lines 6, 7, 8, 9 and 10 of this > result list. Line 7 and 8 contradicts the intended meaning of the data > * > * Again, putting the same data in Sesame and running the same queries does not > produce the same results : >> * concept broader >> * ex:2-wheels-vehicles ex:2-wheels-vehicles >> * ex:bicycle ex:bicycle >> * ex:bicycle ex:2-wheels-vehicles >> * ex:moto ex:moto >> * ex:moto ex:2-wheels-vehicles > > Using the "+" operator instead of "*" produces consistent results. > > We are using dotnetrdf 0.9.0.2110 with Framework .NET 3.5 and Sesame 2.6. > Thanks > Thomas > > -- > > Thomas Francart - Sparna > Consultant Indépendant > Data, Sémantique, Contenus, Connaissances > web : http://sparna.fr, blog : http://francart.fr > Tel : +33 (0)6.71.11.25.97 > Fax : +33 (0)9.58.16.17.14 > Skype : francartthomas > ------------------------------------------------------------------------------ > Precog is a next-generation analytics platform capable of advanced analytics > on semi-structured data. The platform includes APIs for building apps and a > phenomenal toolset for data science. Developers can use our toolset for easy > data analysis & visualization. Get a free account! > http://www2.precog.com/precogplatform/slashdotnewsletter______________________ > _________________________ dotNetRDF-Support mailing list > dot...@li... > https://lists.sourceforge.net/lists/listinfo/dotnetrdf-support |
From: Thomas F. <tho...@sp...> - 2013-04-16 07:51:46
|
Imports VDS.RDF Imports VDS.RDF.Query Module Module1 Sub Main() Dim g As New Graph() g.NamespaceMap.AddNamespace("skos", New Uri("http://www.w3.org/2004/02/skos/core#")) g.NamespaceMap.AddNamespace("rdf", New Uri("http://www.w3.org/1999/02/22-rdf-syntax-ns#")) g.Assert(New Triple(g.CreateUriNode(New Uri("http://www.ewemple.com/concept/2-roues")), g.CreateUriNode("rdf:type"), g.CreateUriNode("skos:Concept"))) g.Assert(New Triple(g.CreateUriNode(New Uri("http://www.ewemple.com/concept/velo")), g.CreateUriNode("rdf:type"), g.CreateUriNode("skos:Concept"))) g.Assert(New Triple(g.CreateUriNode(New Uri("http://www.ewemple.com/concept/moto")), g.CreateUriNode("rdf:type"), g.CreateUriNode("skos:Concept"))) g.Assert(New Triple(g.CreateUriNode(New Uri("http://www.ewemple.com/concept/velo")), g.CreateUriNode("skos:broader"), g.CreateUriNode(New Uri("http://www.ewemple.com/concept/2-roues")))) g.Assert(New Triple(g.CreateUriNode(New Uri("http://www.ewemple.com/concept/moto")), g.CreateUriNode("skos:broader"), g.CreateUriNode(New Uri("http://www.ewemple.com/concept/2-roues")))) g.Assert(New Triple(g.CreateUriNode(New Uri("http://www.ewemple.com/concept/2-roues")), g.CreateUriNode("skos:narrower"), g.CreateUriNode(New Uri("http://www.ewemple.com/concept/velo")))) g.Assert(New Triple(g.CreateUriNode(New Uri("http://www.ewemple.com/concept/2-roues")), g.CreateUriNode("skos:narrower"), g.CreateUriNode(New Uri("http://www.ewemple.com/concept/moto")))) Dim queryString As New SparqlParameterizedString() queryString.Namespaces.AddNamespace("skos", New Uri("http://www.w3.org/2004/02/skos/core#")) 'Requete 1 Console.WriteLine("Request 1 :") queryString.CommandText = "SELECT ?broader WHERE { <http://www.ewemple.com/concept/2-roues> a skos:Concept ; skos:broader* ?broader . }" Dim results1 As SparqlResultSet = g.ExecuteQuery(queryString) If results1.Count > 0 Then For Each result1 As SparqlResult In results1 Console.WriteLine(result1.Value("broader").ToString) Next Else Console.WriteLine("No skos:broader* for the concept") End If Console.WriteLine(vbCrLf) 'Requete 2 Console.WriteLine("Request 2 :") queryString.CommandText = "SELECT ?concept ?broader WHERE { ?concept a skos:Concept ; skos:broader* ?broader . }" Dim results2 As SparqlResultSet = g.ExecuteQuery(queryString) If results2.Count > 0 Then For Each result2 As SparqlResult In results2 Console.WriteLine(result2.Value("concept").ToString & " => " & result2.Value("broader").ToString) Next Else Console.WriteLine("No skos:broader* for the concept") End If Console.ReadLine() End Sub End Module |
From: Thomas F. <tho...@sp...> - 2013-04-16 07:29:26
|
Rob Thank you very much for getting back to us on this. It is good to know at least that you don't see anything wrong in the first code snippet. It is hard for us to provide a self-contained application reproducing the error; we'll see what we can do, but here are some more information that may help : - actually the code is iterating and does an insert + a query for each iteration; so [insert + query with SparqlRemoteEndpoint] leads to OOM, while [insert + query with SesameHttpProtocolVersion6Connector] does not; - the query is indeed built with some input (a URI) and changes every time (every query is different); - the sesame repo. is fairly small (in the order of magnitude of 10000 triples), and each query should return between 1 and 20 rows approximatively; I'll get back to you with more detailled information If I can. Thomas > > Hi Tom and Eric > > I don't see anything obviously wrong with the first code snippet versus the > second code snippet. Both use very similar code behind the scenes so I > don't see any obvious reason why the first leads to a OOM error and the > second does not. > results.Dispose() will not immediately free any memory, it just releases > references to other managed objects that the SparqlResultSet instance is > holding so memory usage will only drop when the garbage collector runs. If > your results are relatively small then memory usage will be negligible > anyway. > I tried to write a simple repo as a command line application (code > attached) > and ran it under a profiler for several prolonged period (15 minutes or so > each time) and memory usage stayed pretty constant throughout and I saw no > obvious signs of memory leak. > > So I need some more information from you guys if I am to debug this > further: > * Do you have a stack trace for the OOM? * How long does it take to hit the OOM in your tests? > * How much data is in your repository? Are you able to provide a copy of > this data? (you can send it to me off-list if it cannot be shared publicly) > * What is the exact query being run? You are building a query from some > inputs, does the query change each time or stay constant? > * How many results are you returning from each query? > What would be really nice is if you could provide a complete minimal > example > I.e. a complete working command line application with data, query and code > that reliably reproduces the problem > Regards, > > Rob > -- * * *Thomas Francart* - Sparna Consultant Indépendant Data, Sémantique, Contenus, Connaissances web : http://sparna.fr, blog : http://francart.fr Tel : +33 (0)6.71.11.25.97 Fax : +33 (0)9.58.16.17.14 Skype : francartthomas |
From: Rob V. <rv...@do...> - 2013-04-11 19:56:22
|
Hi George Comments inline: From: George Abraham <geo...@gm...> Reply-To: dotNetRDF User Help and Support <dot...@li...> Date: Tuesday, April 9, 2013 6:36 PM To: <dot...@li...> Subject: Re: [dotNetRDF-Support] "Options.AlgebraOptimizations = false" (Rob Vesse) > Hello Rob Vesse, > > Thanks a lot for the help. > > It was something that I overlooked. I was under the impression that it needs > to be given as "rdf" as the querying process takes place on RDF files and even > I am uploading an RDF file, but I gues the structure of the file is more of an > OWL file and that is why this problem is occurring...Please do correct me if I > am wrong. Yes dotNetRDF operates on RDF files and one of your files is an OWL ontology serialized as RDF but that is irrelevant here. The problem is purely about matching URIs in the data, your query was defining the prefix incorrectly which meant that dotNetRDF was looking for the wrong URIs in your loaded data so no results were returned. Rob > > > Once again sincere thanks. > > > On Tue, Apr 9, 2013 at 10:10 PM, > <dot...@li...> wrote: >> Send dotNetRDF-Support mailing list submissions to >> dot...@li... >> >> To subscribe or unsubscribe via the World Wide Web, visit >> https://lists.sourceforge.net/lists/listinfo/dotnetrdf-support >> or, via email, send a message with subject or body 'help' to >> dot...@li... >> >> You can reach the person managing the list at >> dot...@li... >> >> When replying, please edit your Subject line so it is more specific >> than "Re: Contents of dotNetRDF-Support digest..." >> >> >> Today's Topics: >> >> 1. BigData compatibility question (x-post from >> SemanticOverflow.com) (Andrew Matthews) >> 2. Re: "Options.AlgebraOptimizations = false" (Rob Vesse) >> >> >> ---------------------------------------------------------------------- >> >> Message: 1 >> Date: Mon, 8 Apr 2013 09:50:39 +1000 >> From: Andrew Matthews <mat...@gm...> >> Subject: [dotNetRDF-Support] BigData compatibility question (x-post >> from SemanticOverflow.com) >> To: dot...@li... >> Message-ID: >> <CAN3EzcySdxz-pM7OvTdfx6fgdNiAbKP=kF_Xqqz=J92...@ma...> >> Content-Type: text/plain; charset="iso-8859-1" >> >> Hi, >> >> I'm having a look at BigData and would like to use it within dotNetRdf. I >> currently use the PersistentTripleStore class as the way to access my >> (Sesame+ OWLIM) triple store. But it seems that using bigdata's restful API >> is not currently compatible with *Read/Write* use through dotNetRdf. I'm >> hoping that it is once again an existing capability that I have not been >> able to deduce from the API. >> >> If that's not the case, what do I do to extend the API to support the >> BigData NanoSparqlServer (or - more generally - any API that supports the >> SPARQL 1.1 Protocol for both query and update)? Excuse the terrible >> formatting below, but you'll find below listed the capabilities of the >> service (or what it reports about its capabilities). It seems to have >> everything needed to allow the creation of something like a Read/Write >> SparqlConnector, I just don't know where to begin. What are the framework >> hoops I must jump through to implement such a connector? I assumed it would >> involve deriving from both SparqlConnector and IUpdateableStorage, but the >> SparqlRemoteEndpoint param to the SparqlConnector ctor doesn't support >> Update queries... >> >> Further details on: . . . >> /using-dotnetrdf-with-updateable-store-through-sparql-11-protocol<http://answ >> ers.semanticweb.com/questions/22043/using-dotnetrdf-with-updateable-store-thr >> ough-sparql-11-protocol> >> >> Best Wishes, >> >> *Andrew Matthews* >> -------------- next part -------------- >> An HTML attachment was scrubbed... >> >> ------------------------------ >> >> Message: 2 >> Date: Tue, 09 Apr 2013 09:39:30 -0700 >> From: Rob Vesse <rv...@do...> >> Subject: Re: [dotNetRDF-Support] "Options.AlgebraOptimizations = >> false" >> To: dotNetRDF User Help and Support >> <dot...@li...> >> Message-ID: <CD899252.1FC8C%rv...@do... >> <mailto:CD899252.1FC8C%25r...@do...> > >> Content-Type: text/plain; charset="us-ascii" >> >> Hi George >> >> In the code you sent you've defined your prefixes incorrectly so no data is >> being matched by your queries. >> >> In your previous examples the sage: prefix was defined as >> <http://www.semanticsage.home.lc/LearningStyles.owl#> >> <http://www.semanticsage.home/lc/LearningStyles.owl#>> but here you have it >> defined as <http://www.semanticsage.home.lc/LearningStyles.rdf#> >> >> When I correct the prefix then your code works fine on the latest code. >> >> Rob >> >> From: George Abraham <geo...@gm...> >> Reply-To: dotNetRDF User Help and Support >> <dot...@li...> >> Date: Friday, April 5, 2013 8:45 PM >> To: <dot...@li...> >> Subject: [dotNetRDF-Support] "Options.AlgebraOptimizations = false" >> >>> > Hello Support, >>> > >>> > This is w.r.t my question on answers.semanticweb.com >>> <http://answers.semanticweb.com> >>> > <http://answers.semanticweb.com> at >>> > >>> "http://answers.semanticweb.com/questions/21871/sparql-subsequent-query-on-r>>> et >>> > rieved-results-using-dotnetrdf" >>> > >>> > @Tomasz Pluskiewicz >>> > <http://answers.semanticweb.com/users/1788/tomasz-pluskiewicz> >>> > : >>> > suggested me to add >>> > " >>> > Options.AlgebraOptimisation = false;" before I make the queries; but my >>> doubt >>> > is should I addd them before both my queries or only before any one. >>> > >>> > The problem code is as follows: >>> > >>> > var graph = (IGraph)store.ExecuteQuery(@" >>> > PREFIX sage: >>> > <http://www.semanticsage.home.lc/LearningStyles.rdf#> >>> > PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> >>> > PREFIX : >>> > <http://www.semanticsage.home.lc/LearningStyles.rdf#> >>> > CONSTRUCT >>> > { >>> > ?MTech :max ?maxScore >>> > } >>> > WHERE >>> > { >>> > SELECT ?MTech (MAX(?max) AS ?maxScore) >>> > WHERE >>> > { >>> > SELECT ?MTech ?LessonType (SUM(?hasValue) AS >>> ?max) >>> > WHERE >>> > { >>> > ?MTech sage:attendsLessons ?Lesson. >>> > ?Lesson sage:hasLessonType ?LessonType. >>> > ?MTech sage:undergoesEvaluation ?Quiz. >>> > ?Quiz sage:isForLesson ?Lesson. >>> > ?MTech sage:hasQuizMarks ?QuizMarks. >>> > ?QuizMarks sage:belongsToQuiz ?Quiz. >>> > ?QuizMarks sage:hasValue ?hasValue. >>> > ?Lesson sage:inRound '1'^^xsd:int. >>> > } >>> > GROUP BY ?MTech ?LessonType >>> > } >>> > GROUP BY ?MTech >>> > }"); >>> > >>> > // here a graph name is given to the result graph >>> > graph.BaseUri = new >>> > Uri("http://semanticsage.home.lc/files/LearningStyles.rdf#maxValues"); >>> > store.Add(graph, true); >>> > >>> > Object actualResults = store.ExecuteQuery(@" >>> > PREFIX sage: >>> > <http://www.semanticsage.home.lc/LearningStyles.rdf#> >>> > PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> >>> > PREFIX : >>> > <http://www.semanticsage.home.lc/LearningStyles.rdf#> >>> > SELECT ?MTech ?LessonType ?max >>> > WHERE >>> > { >>> > GRAPH >>> > <http://semanticsage.home.lc/files/LearningStyles.rdf#maxValues> >>> > { >>> > ?MTech :max ?max >>> > } >>> > { >>> > SELECT ?MTech ?LessonType (SUM(?hasValue) AS >>> > ?Score) >>> > WHERE >>> > { >>> > ?MTech sage:attendsLessons ?Lesson. >>> > ?Lesson sage:hasLessonType ?LessonType. >>> > ?MTech sage:undergoesEvaluation ?Quiz. >>> > ?Quiz sage:isForLesson ?Lesson. >>> > ?MTech sage:hasQuizMarks ?QuizMarks. >>> > ?QuizMarks sage:belongsToQuiz ?Quiz. >>> > ?QuizMarks sage:hasValue ?hasValue. >>> > ?Lesson sage:inRound '1'^^xsd:int. >>> > } >>> > GROUP BY ?MTech ?LessonType >>> > ORDER BY ?MTech >>> > } >>> > FILTER(?Score = ?max) >>> > }"); >>> > >>> > DataTable table = new DataTable(); >>> > DataRow row; >>> > >>> > if (actualResults is SparqlResultSet) >>> > { >>> > SparqlResultSet rset = (SparqlResultSet)actualResults; >>> > >>> > foreach (String var in rset.Variables) >>> > { >>> > table.Columns.Add(new DataColumn(var)); >>> > } >>> > >>> > MessageBox.Show(rset.Count().ToString()); >>> > >>> > foreach (SparqlResult r in rset) >>> > { >>> > row = table.NewRow(); >>> > >>> > foreach (String var in r.Variables) >>> > { >>> > if (r.HasValue(var) && r[var] != null) >>> > { >>> > INode n = r[var]; >>> > switch (n.NodeType) >>> > { >>> > case NodeType.Literal: >>> > //For literals you only want the >>> lexical >>> > value only so need to cast to >>> > //literal and access the Value >>> property >>> > row[var] = ((ILiteralNode)n).Value; >>> > break; >>> > case NodeType.Uri: >>> > Uri u = ((IUriNode)n).Uri; >>> > if (!u.Fragment.Equals(String.Empty)) >>> > //u.Fragment is the fragment ID, the >>> #blah >>> > part of the URI >>> > { >>> > row[var] = >>> u.Fragment.Substring(1); >>> > } >>> > else >>> > { >>> > row[var] = u.AbsoluteUri; >>> > } >>> > break; >>> > default: >>> > //For any other node we just want the >>> > string form so >>> > //ToString() is sufficient >>> > row[var] = n.ToString(); >>> > break; >>> > } >>> > } >>> > } >>> > table.Rows.Add(row); >>> > } >>> > } >>> > DataSet ds = new DataSet(); >>> > ds.Tables.Add(table); >>> > dataGridRound1LS.DataSource = ds.Tables[0]; >>> > >>> > The query is perfect but it returns no values on my system, whereas it is >>> > working perfectly fine for@Tomasz Pluskiewicz >>> > <http://answers.semanticweb.com/users/1788/tomasz-pluskiewicz> . >>> > >>> > Could someone provide me with a solution. >>> > >>> > My RDF is available at: >>> http://semanticsage.home.lc/files/LearningStyles.rdf >>> > >>> > The project containing only the problematic code is available at: >>> > http://semanticsage.home.lc/files/MaxValueCalculationCheck.rar >>> > >>> > As of now the project contains dotNetRDF version 0.9 (the one available >>> from >>> > NuGet). I have even downloaded the latest nightly build and checked on it, >>> but >>> > still the same error. >>> > -- >>> > Regards, >>> > >>> > George Abraham >>> > M.Tech CSE, VIT University >>> > m: +91-8870456778 <tel:%2B91-8870456778> | e: >>> geo...@gm..., >>> > geo...@vi... <mailto:geo...@vi...> >>> > >>> ---------------------------------------------------------------------------->>> -- >>> > Minimize network downtime and maximize team effectiveness. Reduce network >>> > management and security costs.Learn how to hire the most talented Cisco >>> > Certified professionals. Visit the Employer Resources Portal >>> > >>> http://www.cisco.com/web/learning/employer_resources/index.html_____________>>> __ >>> > ________________________________ dotNetRDF-Support mailing list >>> > dot...@li... >>> > https://lists.sourceforge.net/lists/listinfo/dotnetrdf-support >> >> >> -------------- next part -------------- >> An HTML attachment was scrubbed... >> >> ------------------------------ >> >> ----------------------------------------------------------------------------->> - >> Precog is a next-generation analytics platform capable of advanced >> analytics on semi-structured data. The platform includes APIs for building >> apps and a phenomenal toolset for data science. Developers can use >> our toolset for easy data analysis & visualization. Get a free account! >> http://www2.precog.com/precogplatform/slashdotnewsletter >> >> ------------------------------ >> >> _______________________________________________ >> dotNetRDF-Support mailing list >> dot...@li... >> https://lists.sourceforge.net/lists/listinfo/dotnetrdf-support >> >> >> End of dotNetRDF-Support Digest, Vol 28, Issue 3 >> ************************************************ > > > > -- > Regards, > > George Abraham > M.Tech CSE, VIT University > m: +91-8870456778 | e: geo...@gm..., > geo...@vi... <mailto:geo...@vi...> > ------------------------------------------------------------------------------ > Precog is a next-generation analytics platform capable of advanced analytics > on semi-structured data. The platform includes APIs for building apps and a > phenomenal toolset for data science. Developers can use our toolset for easy > data analysis & visualization. Get a free account! > http://www2.precog.com/precogplatform/slashdotnewsletter______________________ > _________________________ dotNetRDF-Support mailing list > dot...@li... > https://lists.sourceforge.net/lists/listinfo/dotnetrdf-support |
From: George A. <geo...@gm...> - 2013-04-10 01:37:46
|
Hello Rob Vesse, Thanks a lot for the help. It was something that I overlooked. I was under the impression that it needs to be given as "rdf" as the querying process takes place on RDF files and even I am uploading an RDF file, but I gues the structure of the file is more of an OWL file and that is why this problem is occurring...Please do correct me if I am wrong. Once again sincere thanks. On Tue, Apr 9, 2013 at 10:10 PM, < dot...@li...> wrote: > Send dotNetRDF-Support mailing list submissions to > dot...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/dotnetrdf-support > or, via email, send a message with subject or body 'help' to > dot...@li... > > You can reach the person managing the list at > dot...@li... > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of dotNetRDF-Support digest..." > > > Today's Topics: > > 1. BigData compatibility question (x-post from > SemanticOverflow.com) (Andrew Matthews) > 2. Re: "Options.AlgebraOptimizations = false" (Rob Vesse) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 8 Apr 2013 09:50:39 +1000 > From: Andrew Matthews <mat...@gm...> > Subject: [dotNetRDF-Support] BigData compatibility question (x-post > from SemanticOverflow.com) > To: dot...@li... > Message-ID: > <CAN3EzcySdxz-pM7OvTdfx6fgdNiAbKP=kF_Xqqz= > J92...@ma...> > Content-Type: text/plain; charset="iso-8859-1" > > Hi, > > I'm having a look at BigData and would like to use it within dotNetRdf. I > currently use the PersistentTripleStore class as the way to access my > (Sesame+ OWLIM) triple store. But it seems that using bigdata's restful API > is not currently compatible with *Read/Write* use through dotNetRdf. I'm > hoping that it is once again an existing capability that I have not been > able to deduce from the API. > > If that's not the case, what do I do to extend the API to support the > BigData NanoSparqlServer (or - more generally - any API that supports the > SPARQL 1.1 Protocol for both query and update)? Excuse the terrible > formatting below, but you'll find below listed the capabilities of the > service (or what it reports about its capabilities). It seems to have > everything needed to allow the creation of something like a Read/Write > SparqlConnector, I just don't know where to begin. What are the framework > hoops I must jump through to implement such a connector? I assumed it would > involve deriving from both SparqlConnector and IUpdateableStorage, but the > SparqlRemoteEndpoint param to the SparqlConnector ctor doesn't support > Update queries... > > Further details on: . . . > /using-dotnetrdf-with-updateable-store-through-sparql-11-protocol< > http://answers.semanticweb.com/questions/22043/using-dotnetrdf-with-updateable-store-through-sparql-11-protocol > > > > Best Wishes, > > *Andrew Matthews* > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > Message: 2 > Date: Tue, 09 Apr 2013 09:39:30 -0700 > From: Rob Vesse <rv...@do...> > Subject: Re: [dotNetRDF-Support] "Options.AlgebraOptimizations = > false" > To: dotNetRDF User Help and Support > <dot...@li...> > Message-ID: <CD899252.1FC8C%rv...@do...> > Content-Type: text/plain; charset="us-ascii" > > Hi George > > In the code you sent you've defined your prefixes incorrectly so no data is > being matched by your queries. > > In your previous examples the sage: prefix was defined as > <http://www.semanticsage.home.lc/LearningStyles.owl#> > <http://www.semanticsage.home/lc/LearningStyles.owl#>> but here you have > it > defined as <http://www.semanticsage.home.lc/LearningStyles.rdf#> > > When I correct the prefix then your code works fine on the latest code. > > Rob > > From: George Abraham <geo...@gm...> > Reply-To: dotNetRDF User Help and Support > <dot...@li...> > Date: Friday, April 5, 2013 8:45 PM > To: <dot...@li...> > Subject: [dotNetRDF-Support] "Options.AlgebraOptimizations = false" > > > Hello Support, > > > > This is w.r.t my question on answers.semanticweb.com > > <http://answers.semanticweb.com> at > > " > http://answers.semanticweb.com/questions/21871/sparql-subsequent-query-on-ret > > rieved-results-using-dotnetrdf" > > > > @Tomasz Pluskiewicz > > <http://answers.semanticweb.com/users/1788/tomasz-pluskiewicz> > > : > > suggested me to add > > " > > Options.AlgebraOptimisation = false;" before I make the queries; but my > doubt > > is should I addd them before both my queries or only before any one. > > > > The problem code is as follows: > > > > var graph = (IGraph)store.ExecuteQuery(@" > > PREFIX sage: > > <http://www.semanticsage.home.lc/LearningStyles.rdf#> > > PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> > > PREFIX : > > <http://www.semanticsage.home.lc/LearningStyles.rdf#> > > CONSTRUCT > > { > > ?MTech :max ?maxScore > > } > > WHERE > > { > > SELECT ?MTech (MAX(?max) AS ?maxScore) > > WHERE > > { > > SELECT ?MTech ?LessonType (SUM(?hasValue) AS > ?max) > > WHERE > > { > > ?MTech sage:attendsLessons ?Lesson. > > ?Lesson sage:hasLessonType ?LessonType. > > ?MTech sage:undergoesEvaluation ?Quiz. > > ?Quiz sage:isForLesson ?Lesson. > > ?MTech sage:hasQuizMarks ?QuizMarks. > > ?QuizMarks sage:belongsToQuiz ?Quiz. > > ?QuizMarks sage:hasValue ?hasValue. > > ?Lesson sage:inRound '1'^^xsd:int. > > } > > GROUP BY ?MTech ?LessonType > > } > > GROUP BY ?MTech > > }"); > > > > // here a graph name is given to the result graph > > graph.BaseUri = new > > Uri("http://semanticsage.home.lc/files/LearningStyles.rdf#maxValues"); > > store.Add(graph, true); > > > > Object actualResults = store.ExecuteQuery(@" > > PREFIX sage: > > <http://www.semanticsage.home.lc/LearningStyles.rdf#> > > PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> > > PREFIX : > > <http://www.semanticsage.home.lc/LearningStyles.rdf#> > > SELECT ?MTech ?LessonType ?max > > WHERE > > { > > GRAPH > > <http://semanticsage.home.lc/files/LearningStyles.rdf#maxValues> > > { > > ?MTech :max ?max > > } > > { > > SELECT ?MTech ?LessonType (SUM(?hasValue) AS > > ?Score) > > WHERE > > { > > ?MTech sage:attendsLessons ?Lesson. > > ?Lesson sage:hasLessonType ?LessonType. > > ?MTech sage:undergoesEvaluation ?Quiz. > > ?Quiz sage:isForLesson ?Lesson. > > ?MTech sage:hasQuizMarks ?QuizMarks. > > ?QuizMarks sage:belongsToQuiz ?Quiz. > > ?QuizMarks sage:hasValue ?hasValue. > > ?Lesson sage:inRound '1'^^xsd:int. > > } > > GROUP BY ?MTech ?LessonType > > ORDER BY ?MTech > > } > > FILTER(?Score = ?max) > > }"); > > > > DataTable table = new DataTable(); > > DataRow row; > > > > if (actualResults is SparqlResultSet) > > { > > SparqlResultSet rset = (SparqlResultSet)actualResults; > > > > foreach (String var in rset.Variables) > > { > > table.Columns.Add(new DataColumn(var)); > > } > > > > MessageBox.Show(rset.Count().ToString()); > > > > foreach (SparqlResult r in rset) > > { > > row = table.NewRow(); > > > > foreach (String var in r.Variables) > > { > > if (r.HasValue(var) && r[var] != null) > > { > > INode n = r[var]; > > switch (n.NodeType) > > { > > case NodeType.Literal: > > //For literals you only want the > lexical > > value only so need to cast to > > //literal and access the Value > property > > row[var] = ((ILiteralNode)n).Value; > > break; > > case NodeType.Uri: > > Uri u = ((IUriNode)n).Uri; > > if (!u.Fragment.Equals(String.Empty)) > > //u.Fragment is the fragment ID, the > #blah > > part of the URI > > { > > row[var] = > u.Fragment.Substring(1); > > } > > else > > { > > row[var] = u.AbsoluteUri; > > } > > break; > > default: > > //For any other node we just want the > > string form so > > //ToString() is sufficient > > row[var] = n.ToString(); > > break; > > } > > } > > } > > table.Rows.Add(row); > > } > > } > > DataSet ds = new DataSet(); > > ds.Tables.Add(table); > > dataGridRound1LS.DataSource = ds.Tables[0]; > > > > The query is perfect but it returns no values on my system, whereas it is > > working perfectly fine for@Tomasz Pluskiewicz > > <http://answers.semanticweb.com/users/1788/tomasz-pluskiewicz> . > > > > Could someone provide me with a solution. > > > > My RDF is available at: > http://semanticsage.home.lc/files/LearningStyles.rdf > > > > The project containing only the problematic code is available at: > > http://semanticsage.home.lc/files/MaxValueCalculationCheck.rar > > > > As of now the project contains dotNetRDF version 0.9 (the one available > from > > NuGet). I have even downloaded the latest nightly build and checked on > it, but > > still the same error. > > -- > > Regards, > > > > George Abraham > > M.Tech CSE, VIT University > > m: +91-8870456778 | e: geo...@gm..., > > geo...@vi... <mailto:geo...@vi...> > > > ------------------------------------------------------------------------------ > > Minimize network downtime and maximize team effectiveness. Reduce network > > management and security costs.Learn how to hire the most talented Cisco > > Certified professionals. Visit the Employer Resources Portal > > > http://www.cisco.com/web/learning/employer_resources/index.html_______________ > > ________________________________ dotNetRDF-Support mailing list > > dot...@li... > > https://lists.sourceforge.net/lists/listinfo/dotnetrdf-support > > > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > > ------------------------------------------------------------------------------ > Precog is a next-generation analytics platform capable of advanced > analytics on semi-structured data. The platform includes APIs for building > apps and a phenomenal toolset for data science. Developers can use > our toolset for easy data analysis & visualization. Get a free account! > http://www2.precog.com/precogplatform/slashdotnewsletter > > ------------------------------ > > _______________________________________________ > dotNetRDF-Support mailing list > dot...@li... > https://lists.sourceforge.net/lists/listinfo/dotnetrdf-support > > > End of dotNetRDF-Support Digest, Vol 28, Issue 3 > ************************************************ > -- Regards,* George Abraham* M.Tech CSE, VIT University *m:* +91-8870456778 | *e:* geo...@gm..., geo...@vi... <geo...@vi...> |
From: Rob V. <rv...@do...> - 2013-04-09 16:51:11
|
Hi Andrew If you want to do this you probably want to extend SparqlConnector and override the methods that currently throw NotSupportedException plus implement IUpdateableStorage as you suggest. PersistentTripleStore uses SaveGraph(), UpdateGraph() and DeleteGraph() - implementing IUpdateableStorage will mean the stores native SPARQL update implementation will be use rather than an approximated implementation. I filed an issue for (CORE-346 [1]) this but am totally snowed under with real life at the moment and don't have any time to work on this, contributions are always welcome. Regards, Rob [1] http://dotnetrdf.org/tracker/Issues/IssueDetail.aspx?id=346 From: Andrew Matthews <mat...@gm...> Reply-To: dotNetRDF User Help and Support <dot...@li...> Date: Sunday, April 7, 2013 4:50 PM To: <dot...@li...> Subject: [dotNetRDF-Support] BigData compatibility question (x-post from SemanticOverflow.com) > Hi, > I'm having a look at BigData and would like to use it within dotNetRdf. I > currently use the PersistentTripleStore class as the way to access my (Sesame+ > OWLIM) triple store. But it seems that using bigdata's restful API is not > currently compatible with Read/Write use through dotNetRdf. I'm hoping that it > is once again an existing capability that I have not been able to deduce from > the API. > If that's not the case, what do I do to extend the API to support the BigData > NanoSparqlServer (or - more generally - any API that supports the SPARQL 1.1 > Protocol for both query and update)? Excuse the terrible formatting below, but > you'll find below listed the capabilities of the service (or what it reports > about its capabilities). It seems to have everything needed to allow the > creation of something like a Read/Write SparqlConnector, I just don't know > where to begin. What are the framework hoops I must jump through to implement > such a connector? I assumed it would involve deriving from both > SparqlConnector and IUpdateableStorage, but the SparqlRemoteEndpoint param to > the SparqlConnector ctor doesn't support Update queries... > Further details on: . . . > /using-dotnetrdf-with-updateable-store-through-sparql-11-protocol > <http://answers.semanticweb.com/questions/22043/using-dotnetrdf-with-updateabl > e-store-through-sparql-11-protocol> > > Best Wishes, > > Andrew Matthews > ------------------------------------------------------------------------------ > Minimize network downtime and maximize team effectiveness. Reduce network > management and security costs.Learn how to hire the most talented Cisco > Certified professionals. Visit the Employer Resources Portal > http://www.cisco.com/web/learning/employer_resources/index.html_______________ > ________________________________ dotNetRDF-Support mailing list > dot...@li... > https://lists.sourceforge.net/lists/listinfo/dotnetrdf-support |
From: Rob V. <rv...@do...> - 2013-04-09 16:40:32
|
Hi George In the code you sent you've defined your prefixes incorrectly so no data is being matched by your queries. In your previous examples the sage: prefix was defined as <http://www.semanticsage.home.lc/LearningStyles.owl#> <http://www.semanticsage.home/lc/LearningStyles.owl#>> but here you have it defined as <http://www.semanticsage.home.lc/LearningStyles.rdf#> When I correct the prefix then your code works fine on the latest code. Rob From: George Abraham <geo...@gm...> Reply-To: dotNetRDF User Help and Support <dot...@li...> Date: Friday, April 5, 2013 8:45 PM To: <dot...@li...> Subject: [dotNetRDF-Support] "Options.AlgebraOptimizations = false" > Hello Support, > > This is w.r.t my question on answers.semanticweb.com > <http://answers.semanticweb.com> at > "http://answers.semanticweb.com/questions/21871/sparql-subsequent-query-on-ret > rieved-results-using-dotnetrdf" > > @Tomasz Pluskiewicz > <http://answers.semanticweb.com/users/1788/tomasz-pluskiewicz> > : > suggested me to add > " > Options.AlgebraOptimisation = false;" before I make the queries; but my doubt > is should I addd them before both my queries or only before any one. > > The problem code is as follows: > > var graph = (IGraph)store.ExecuteQuery(@" > PREFIX sage: > <http://www.semanticsage.home.lc/LearningStyles.rdf#> > PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> > PREFIX : > <http://www.semanticsage.home.lc/LearningStyles.rdf#> > CONSTRUCT > { > ?MTech :max ?maxScore > } > WHERE > { > SELECT ?MTech (MAX(?max) AS ?maxScore) > WHERE > { > SELECT ?MTech ?LessonType (SUM(?hasValue) AS ?max) > WHERE > { > ?MTech sage:attendsLessons ?Lesson. > ?Lesson sage:hasLessonType ?LessonType. > ?MTech sage:undergoesEvaluation ?Quiz. > ?Quiz sage:isForLesson ?Lesson. > ?MTech sage:hasQuizMarks ?QuizMarks. > ?QuizMarks sage:belongsToQuiz ?Quiz. > ?QuizMarks sage:hasValue ?hasValue. > ?Lesson sage:inRound '1'^^xsd:int. > } > GROUP BY ?MTech ?LessonType > } > GROUP BY ?MTech > }"); > > // here a graph name is given to the result graph > graph.BaseUri = new > Uri("http://semanticsage.home.lc/files/LearningStyles.rdf#maxValues"); > store.Add(graph, true); > > Object actualResults = store.ExecuteQuery(@" > PREFIX sage: > <http://www.semanticsage.home.lc/LearningStyles.rdf#> > PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> > PREFIX : > <http://www.semanticsage.home.lc/LearningStyles.rdf#> > SELECT ?MTech ?LessonType ?max > WHERE > { > GRAPH > <http://semanticsage.home.lc/files/LearningStyles.rdf#maxValues> > { > ?MTech :max ?max > } > { > SELECT ?MTech ?LessonType (SUM(?hasValue) AS > ?Score) > WHERE > { > ?MTech sage:attendsLessons ?Lesson. > ?Lesson sage:hasLessonType ?LessonType. > ?MTech sage:undergoesEvaluation ?Quiz. > ?Quiz sage:isForLesson ?Lesson. > ?MTech sage:hasQuizMarks ?QuizMarks. > ?QuizMarks sage:belongsToQuiz ?Quiz. > ?QuizMarks sage:hasValue ?hasValue. > ?Lesson sage:inRound '1'^^xsd:int. > } > GROUP BY ?MTech ?LessonType > ORDER BY ?MTech > } > FILTER(?Score = ?max) > }"); > > DataTable table = new DataTable(); > DataRow row; > > if (actualResults is SparqlResultSet) > { > SparqlResultSet rset = (SparqlResultSet)actualResults; > > foreach (String var in rset.Variables) > { > table.Columns.Add(new DataColumn(var)); > } > > MessageBox.Show(rset.Count().ToString()); > > foreach (SparqlResult r in rset) > { > row = table.NewRow(); > > foreach (String var in r.Variables) > { > if (r.HasValue(var) && r[var] != null) > { > INode n = r[var]; > switch (n.NodeType) > { > case NodeType.Literal: > //For literals you only want the lexical > value only so need to cast to > //literal and access the Value property > row[var] = ((ILiteralNode)n).Value; > break; > case NodeType.Uri: > Uri u = ((IUriNode)n).Uri; > if (!u.Fragment.Equals(String.Empty)) > //u.Fragment is the fragment ID, the #blah > part of the URI > { > row[var] = u.Fragment.Substring(1); > } > else > { > row[var] = u.AbsoluteUri; > } > break; > default: > //For any other node we just want the > string form so > //ToString() is sufficient > row[var] = n.ToString(); > break; > } > } > } > table.Rows.Add(row); > } > } > DataSet ds = new DataSet(); > ds.Tables.Add(table); > dataGridRound1LS.DataSource = ds.Tables[0]; > > The query is perfect but it returns no values on my system, whereas it is > working perfectly fine for@Tomasz Pluskiewicz > <http://answers.semanticweb.com/users/1788/tomasz-pluskiewicz> . > > Could someone provide me with a solution. > > My RDF is available at: http://semanticsage.home.lc/files/LearningStyles.rdf > > The project containing only the problematic code is available at: > http://semanticsage.home.lc/files/MaxValueCalculationCheck.rar > > As of now the project contains dotNetRDF version 0.9 (the one available from > NuGet). I have even downloaded the latest nightly build and checked on it, but > still the same error. > -- > Regards, > > George Abraham > M.Tech CSE, VIT University > m: +91-8870456778 | e: geo...@gm..., > geo...@vi... <mailto:geo...@vi...> > ------------------------------------------------------------------------------ > Minimize network downtime and maximize team effectiveness. Reduce network > management and security costs.Learn how to hire the most talented Cisco > Certified professionals. Visit the Employer Resources Portal > http://www.cisco.com/web/learning/employer_resources/index.html_______________ > ________________________________ dotNetRDF-Support mailing list > dot...@li... > https://lists.sourceforge.net/lists/listinfo/dotnetrdf-support |
From: Andrew M. <mat...@gm...> - 2013-04-07 23:50:52
|
Hi, I'm having a look at BigData and would like to use it within dotNetRdf. I currently use the PersistentTripleStore class as the way to access my (Sesame+ OWLIM) triple store. But it seems that using bigdata's restful API is not currently compatible with *Read/Write* use through dotNetRdf. I'm hoping that it is once again an existing capability that I have not been able to deduce from the API. If that's not the case, what do I do to extend the API to support the BigData NanoSparqlServer (or - more generally - any API that supports the SPARQL 1.1 Protocol for both query and update)? Excuse the terrible formatting below, but you'll find below listed the capabilities of the service (or what it reports about its capabilities). It seems to have everything needed to allow the creation of something like a Read/Write SparqlConnector, I just don't know where to begin. What are the framework hoops I must jump through to implement such a connector? I assumed it would involve deriving from both SparqlConnector and IUpdateableStorage, but the SparqlRemoteEndpoint param to the SparqlConnector ctor doesn't support Update queries... Further details on: . . . /using-dotnetrdf-with-updateable-store-through-sparql-11-protocol<http://answers.semanticweb.com/questions/22043/using-dotnetrdf-with-updateable-store-through-sparql-11-protocol> Best Wishes, *Andrew Matthews* |
From: George A. <geo...@gm...> - 2013-04-06 03:46:30
|
Hello Support, This is w.r.t my question on answers.semanticweb.com at " http://answers.semanticweb.com/questions/21871/sparql-subsequent-query-on-retrieved-results-using-dotnetrdf " @Tomasz Pluskiewicz<http://answers.semanticweb.com/users/1788/tomasz-pluskiewicz> : suggested me to add " *Options.AlgebraOptimisation = false;*" before I make the queries; but my doubt is should I addd them before both my queries or only before any one. The problem code is as follows: var graph = (IGraph)store.ExecuteQuery(@" PREFIX sage: < http://www.semanticsage.home.lc/LearningStyles.rdf#> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> PREFIX : < http://www.semanticsage.home.lc/LearningStyles.rdf#> CONSTRUCT { ?MTech :max ?maxScore } WHERE { SELECT ?MTech (MAX(?max) AS ?maxScore) WHERE { SELECT ?MTech ?LessonType (SUM(?hasValue) AS ?max) WHERE { ?MTech sage:attendsLessons ?Lesson. ?Lesson sage:hasLessonType ?LessonType. ?MTech sage:undergoesEvaluation ?Quiz. ?Quiz sage:isForLesson ?Lesson. ?MTech sage:hasQuizMarks ?QuizMarks. ?QuizMarks sage:belongsToQuiz ?Quiz. ?QuizMarks sage:hasValue ?hasValue. ?Lesson sage:inRound '1'^^xsd:int. } GROUP BY ?MTech ?LessonType } GROUP BY ?MTech }"); // here a graph name is given to the result graph graph.BaseUri = new Uri(" http://semanticsage.home.lc/files/LearningStyles.rdf#maxValues"); store.Add(graph, true); Object actualResults = store.ExecuteQuery(@" PREFIX sage: < http://www.semanticsage.home.lc/LearningStyles.rdf#> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> PREFIX : < http://www.semanticsage.home.lc/LearningStyles.rdf#> SELECT ?MTech ?LessonType ?max WHERE { GRAPH < http://semanticsage.home.lc/files/LearningStyles.rdf#maxValues> { ?MTech :max ?max } { SELECT ?MTech ?LessonType (SUM(?hasValue) AS ?Score) WHERE { ?MTech sage:attendsLessons ?Lesson. ?Lesson sage:hasLessonType ?LessonType. ?MTech sage:undergoesEvaluation ?Quiz. ?Quiz sage:isForLesson ?Lesson. ?MTech sage:hasQuizMarks ?QuizMarks. ?QuizMarks sage:belongsToQuiz ?Quiz. ?QuizMarks sage:hasValue ?hasValue. ?Lesson sage:inRound '1'^^xsd:int. } GROUP BY ?MTech ?LessonType ORDER BY ?MTech } FILTER(?Score = ?max) }"); DataTable table = new DataTable(); DataRow row; if (actualResults is SparqlResultSet) { SparqlResultSet rset = (SparqlResultSet)actualResults; foreach (String var in rset.Variables) { table.Columns.Add(new DataColumn(var)); } MessageBox.Show(rset.Count().ToString()); foreach (SparqlResult r in rset) { row = table.NewRow(); foreach (String var in r.Variables) { if (r.HasValue(var) && r[var] != null) { INode n = r[var]; switch (n.NodeType) { case NodeType.Literal: //For literals you only want the lexical value only so need to cast to //literal and access the Value property row[var] = ((ILiteralNode)n).Value; break; case NodeType.Uri: Uri u = ((IUriNode)n).Uri; if (!u.Fragment.Equals(String.Empty)) //u.Fragment is the fragment ID, the #blah part of the URI { row[var] = u.Fragment.Substring(1); } else { row[var] = u.AbsoluteUri; } break; default: //For any other node we just want the string form so //ToString() is sufficient row[var] = n.ToString(); break; } } } table.Rows.Add(row); } } DataSet ds = new DataSet(); ds.Tables.Add(table); dataGridRound1LS.DataSource = ds.Tables[0]; The query is perfect but it returns no values on my system, whereas it is working perfectly fine for@Tomasz Pluskiewicz<http://answers.semanticweb.com/users/1788/tomasz-pluskiewicz> . Could someone provide me with a solution. My RDF is available at: http://semanticsage.home.lc/files/LearningStyles.rdf The project containing only the problematic code is available at: http://semanticsage.home.lc/files/MaxValueCalculationCheck.rar As of now the project contains dotNetRDF version 0.9 (the one available from NuGet). I have even downloaded the latest nightly build and checked on it, but still the same error. -- Regards,* George Abraham* M.Tech CSE, VIT University *m:* +91-8870456778 | *e:* geo...@gm..., geo...@vi... <geo...@vi...> |
From: Rob V. <rv...@do...> - 2013-04-05 23:06:52
|
As I stated in my previous email to the mailing list you can already get an updated nightly build from http://hg.code.sf.net/p/dotnetrdf/binaries-nightly/file/tip The next release isn't ready yet and we don't rush releases, there are always bug fixes between releases and people who need them must either choose to wait, take a nightly build that has their desired fixes or build from trunk themselves. This is the way that open source projects operate, I am sorry if this is not helpful to you but this is the way it is. As noted in the previous email to this list no-one works on this full time or is paid to do this, we do it in our spare time as and when we have it. Right now I have very little and putting out a release contrary to what you may imagine is not something quick I can do in 5 minutes over the weekend. It typically takes a full day of my time (which btw is quick compared to other open source projects I am involved in) and I just don't have that spare right now. Rob From: George Abraham <geo...@gm...> Date: Friday, April 5, 2013 5:33 AM To: Rob Vesse <rv...@do...> Subject: Release of Binary of updated version of dotNetRDF > Hello Rob Vesse, > > If it wouldn't be much of a trouble for you, it would be of great help to me > if you could upload the compiled binary of the updated version of dotNetRDF > that has many bugs pertaining to my project resolved. > > Sorry for asking much of you, but even if it could be done over the weekend it > would be of great help as my thesis submission is nearing and I am running > sort of time. > > Thanks a lot in advance. > > -- > Regards, > > George Abraham > M.Tech CSE, VIT University > m: +91-8870456778 <tel:%2B91-8870456778> | e: geo...@gm..., > geo...@vi... <mailto:geo...@vi...> |
From: Rob V. <rv...@do...> - 2013-04-04 17:29:22
|
Hi George I have just pushed up nightly builds to the Binaries Nightly <http://sourceforge.net/p/dotnetrdf/binaries-nightly/> repository so you can grab an almost up to date build there (it doesn't include some not yet merged localization fixes from Tom) Btw you mentioned elsewhere you had problem compiling yourself, can you elaborate on what those issues were so we can improve documentation/rectify the problem as appropriate? The latest version will be released when it is ready and when we have time, sorry if that isn't a particularly helpful answer. Remember this is an open source project and no-one works full time on this or is paid to do this so it depends on when we have free time to get stuff done. We hope to get a new release out in the next week or two but I can't guarantee this, if bug reports continue to come in we would prefer to continue to do fixes and regression tests rather than rushing out a release that we are not confident is stable. This is especially true since the next release is our 1.0 which we have been steadily working towards for some time and would like to be as stable as possible Rob From: George Abraham <geo...@gm...> Reply-To: dotNetRDF User Help and Support <dot...@li...> Date: Thursday, April 4, 2013 10:01 AM To: <dot...@li...> Subject: [dotNetRDF-Support] dotNetRDF Update Version > Hi, > > By when will the latest update of dotNetRDF be released as a lot of bugs in > the existing version 9 has been rectified, but a binary is not yet available. > > -- > Regards, > > George Abraham > M.Tech CSE, VIT University > Director - alpha Techno Consultancy > m: +91-8870456778 | e: geo...@gm..., > geo...@vi... <mailto:geo...@vi...> > w: alpha Techno Consultancy <http://alphatechnoconsultancy.webs.com/> > ------------------------------------------------------------------------------ > Minimize network downtime and maximize team effectiveness. Reduce network > management and security costs.Learn how to hire the most talented Cisco > Certified professionals. Visit the Employer Resources Portal > http://www.cisco.com/web/learning/employer_resources/index.html_______________ > ________________________________ dotNetRDF-Support mailing list > dot...@li... > https://lists.sourceforge.net/lists/listinfo/dotnetrdf-support |