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: Buongiorno, P. <pbu...@es...> - 2012-06-20 13:36:29
|
Hi, I would kmow if there is a way to search an element in a owl/rdf file giving a substring, or a "Like" text For example if I enter the string "Godfather", I can have the result "The Godfather" (that is the correct string present in the owl/rdf file) Thanks you all Pier ________________________________ Este correo electr?nico y, en su caso, cualquier fichero anexo al mismo, contiene informaci?n de car?cter confidencial exclusivamente dirigida a su destinatario o destinatarios. Si no es vd. el destinatario indicado, queda notificado que la lectura, utilizaci?n, divulgaci?n y/o copia sin autorizaci?n est? prohibida en virtud de la legislaci?n vigente. En el caso de haber recibido este correo electr?nico por error, se ruega notificar inmediatamente esta circunstancia mediante reenv?o a la direcci?n electr?nica del remitente. Evite imprimir este mensaje si no es estrictamente necesario. This email and any file attached to it (when applicable) contain(s) confidential information that is exclusively addressed to its recipient(s). If you are not the indicated recipient, you are informed that reading, using, disseminating and/or copying it without authorisation is forbidden in accordance with the legislation in effect. If you have received this email by mistake, please immediately notify the sender of the situation by resending it to their email address. Avoid printing this message if it is not absolutely necessary. |
From: Buongiorno, P. <pbu...@es...> - 2012-06-19 16:39:29
|
Please subscribe me ________________________________ Este correo electr?nico y, en su caso, cualquier fichero anexo al mismo, contiene informaci?n de car?cter confidencial exclusivamente dirigida a su destinatario o destinatarios. Si no es vd. el destinatario indicado, queda notificado que la lectura, utilizaci?n, divulgaci?n y/o copia sin autorizaci?n est? prohibida en virtud de la legislaci?n vigente. En el caso de haber recibido este correo electr?nico por error, se ruega notificar inmediatamente esta circunstancia mediante reenv?o a la direcci?n electr?nica del remitente. Evite imprimir este mensaje si no es estrictamente necesario. This email and any file attached to it (when applicable) contain(s) confidential information that is exclusively addressed to its recipient(s). If you are not the indicated recipient, you are informed that reading, using, disseminating and/or copying it without authorisation is forbidden in accordance with the legislation in effect. If you have received this email by mistake, please immediately notify the sender of the situation by resending it to their email address. Avoid printing this message if it is not absolutely necessary. |
From: Rob V. <rv...@do...> - 2012-06-18 17:58:57
|
Hi Eric Comments inline: From: Eric Hochmeister <er...@ho...> Date: Friday, June 15, 2012 8:08 AM To: Cray Employee <rv...@do...> Subject: Can't access graphs from triple store. > Rob, > > I was wondering if there was a tutorial, or some documentation which gives a > clearer picture on whole picture use of dotNetRDF. If not, I was wondering if > I could contribute one as I try and figure this all out. Other than the documentation on the website there are not really any general purpose tutorials. Contributing one would always be welcome. > > I¹m currently constructing a simple Contacts based asp.net mvc web app based > on dotNetRdf, as the basis for the example. I¹m using Sesame as it seemed > like a good basis, since it¹s free/popular and works on Windows which I happen > to be on. > > I¹m trying to follow the Natively Queryable Stores example found at > http://www.dotnetrdf.org/content.asp?pageID=Working with Triple Stores, but I > can¹t seem to get the graph loaded through the store. I can successfully add > / remove, etc. on in memory data, but ideally I¹d like the example to use a > persistent backing, as it would seem of more practical use. PersistentTripleStore is primarily a user friendly abstraction around the IGenericIOManager interface, depending on what you want to do using the latter directly may be easier. The former has some advantages in terms of giving some degree of transaction support and a higher level API. > > My problem is that when I try to load a graph, list graphs, or check if any > graphs exist from the PersistentTripleStore it tells me there are none. But I > can successfully run a query against the TripleStore. If I get the underlying > store, I can successfully load the graph, but then my problem is that calling > Flush() on the triple store doesn¹t persist the triple out sesame. Am I > missing something? I'm not sure, first glance I wondered whether you were hitting a subtle .Net URI normalization issue around file URIs but this doesn't appear to be the case AFAICT. Some comments inline in the code below > > I¹ve included the code below with comments. > > I apologize if this is not the appropriate channel to ask for help. I prefer if things go through the mailing lists wherever possible so that they are visible to other users who may encounter the same issues in the future. > > Thank you for your time, > > Eric > > > > sesame = new > SesameHttpProtocolVersion6Connector("http://localhost.:8080/openrdf-sesame/", > "CRM"); > var uris = _sesame.ListGraphs(); This returns a combination of the URIs of the underlying store and any locally introduced graphs that have not yet been persisted. If there is nothing in either this will return an empty enumeration. > > _sesameStore = new PersistentTripleStore(_sesame); > > // This code tells me that there are no graphs, and when I load the graphs the > count is 0. > bool hasGraph = _sesameStore.HasGraph(new Uri("file://crm_test.owl/")); So this returns false? Does a non-empty graph with that URI exist in the Sesame store? The PersistentTripleStore determines whether a Graph exists under the hood by calling LoadGraph() on the underlying store and returning true if the resulting graph is non-empty. So even if Sesame allows for empty graphs (which I'm not sure if it does) then an empty graph would result in a false response. > BaseGraphCollection graphs = _sesameStore.Graphs; > > _graph = new Graph(); > // I can successfully get a graph when loading it from the underlying store. > _sesameStore.UnderlyingStore.LoadGraph(_graph, "file://crm_test.owl/"); So this gives a non-empty graph? If that is the case then there is something odd going on, this may be the .Net file URI normalization issue I alluded to before or it maybe something else. If this method provides a non-empty graph then I need to dig into this further to see if this is some Sesame specific issue or a more general bug. If it returns an empty graph this is the expected behavior, most stores don't give any error that a graph we try and retrieve doesn't exist they just return an empty response so we have no way of knowing that we should throw an error or behave in any way other than assuming the operation succeeded. What version of Sesame are you using? > > _graph.NamespaceMap.AddNamespace(@"crm", new > Uri(@"http://www.mind14.com/ontologies/2012/6/Mind14CRM.owl#")); > NodeFactory nFactory = new NodeFactory(); > var larryNode = nFactory.CreateUriNode(newUri(@"crm:LarryEllison")); Note that any Graph instance is automatically a NodeFactory so there is no need to create a separate factory here (and in some circumstances doing so may lead to erroneous behaviour) > _graph.Assert(newTriple(larryNode, > nFactory.CreateUriNode(newUri("crm:firstname")), > nFactory.CreateLiteralNode("Larry", new > Uri("xsd:string")))); > // When I flush, it seems not to save the asserted triple, and I'm assuming > its because I loaded it directly from > // the underlying store rather than through the triplestore calls. I get no > exceptions either. > _sesameStore.Flush(); > Unless the graph was loaded via the PersistentTripleStore changes made to it will not be monitored and queued for flushing to the underlying store. As a temporary workaround you can load the graph via the underlying store and then call Add() on the PersistentTripleStore which will wire it up so that changes are monitored. You should call Add() prior to making any changes to that graph to ensure any changes are tracked and then applied when Flush() is called. Hope this helps, Rob Vesse |
From: Rob V. <rv...@do...> - 2012-06-07 19:02:51
|
Helps if I remember to add the links: [1] http://semtechbizsf2012.semanticweb.com/ [2] http://www.dotnetrdf.org/blogitem.asp?blogId=64 > Hi All > > For those who've been using the project for a long time you'll be aware that > once upon a time our only persistence mechanism other than writing RDF to disk > was a SQL backend. Over time we've introduced support for a variety of great > open source and commercial triple stores as backends and our SQL backend has > languished in obscurity because we've been far more focused on building a > solid general purpose RDF and SPARQL API and not on trying to build our own > triple store (which has always been a stated aim of the project build an API > not a triple store). > > With this in mind and in view of the performance and scalability numbers I and > others have been presenting at the SemTechBiz [1] conference here in San > Francisco it's clear to me that our SQL backend is never going to compete with > (not that it was ever designed to). With this in mind I have decided that I > personally am going to stop any further work on this and stop supporting this > feature after the upcoming 0.7.x releases. In particular I intend to remove > this from both the SVN trunk and standard release package after those > releases. > > Note that the SQL backend uses the same API (IGenericIOManager) as all the > other triple stores we support so it should be relatively easy for people to > migrate off of the SQL backend. On a slightly unrelated note the > IGenericIOManager API is getting some renaming in the 0.7.x releases but all > changes are fully backwards compatible in the short term. > > Please see [2] for a blog post which discusses more of the reasoning behind > this. As I note in the post there this is up for discussion as for everything > else but if you really want this to be improved and be continued to be > maintained then you need to step up and volunteer. My time is limited and I > would rather focus on the areas where I have the knowledge and expertise to > improve the performance and stability of the Core APIs rather than focus on > off things that are already handled better by other features of the API. > > Rob Vesse > ------------------------------------------------------------------------------ > Live Security Virtual Conference Exclusive live event will cover all the ways > today's security and threat landscape has changed and how IT managers can > respond. Discussions will include endpoint security, mobile security and the > latest in malware threats. > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/_____________________ > __________________________ dotNetRDF-develop mailing list > dot...@li... > https://lists.sourceforge.net/lists/listinfo/dotnetrdf-develop |
From: Rob V. <rv...@do...> - 2012-06-07 18:57:58
|
Hi All For those who've been using the project for a long time you'll be aware that once upon a time our only persistence mechanism other than writing RDF to disk was a SQL backend. Over time we've introduced support for a variety of great open source and commercial triple stores as backends and our SQL backend has languished in obscurity because we've been far more focused on building a solid general purpose RDF and SPARQL API and not on trying to build our own triple store (which has always been a stated aim of the project build an API not a triple store). With this in mind and in view of the performance and scalability numbers I and others have been presenting at the SemTechBiz [1] conference here in San Francisco it's clear to me that our SQL backend is never going to compete with (not that it was ever designed to). With this in mind I have decided that I personally am going to stop any further work on this and stop supporting this feature after the upcoming 0.7.x releases. In particular I intend to remove this from both the SVN trunk and standard release package after those releases. Note that the SQL backend uses the same API (IGenericIOManager) as all the other triple stores we support so it should be relatively easy for people to migrate off of the SQL backend. On a slightly unrelated note the IGenericIOManager API is getting some renaming in the 0.7.x releases but all changes are fully backwards compatible in the short term. Please see [2] for a blog post which discusses more of the reasoning behind this. As I note in the post there this is up for discussion as for everything else but if you really want this to be improved and be continued to be maintained then you need to step up and volunteer. My time is limited and I would rather focus on the areas where I have the knowledge and expertise to improve the performance and stability of the Core APIs rather than focus on off things that are already handled better by other features of the API. Rob Vesse |
From: Rob V. <rv...@do...> - 2012-06-06 17:24:15
|
Another thought on the performance in VS against performance outside VS Depending on the query as part of the evaluation we may be required to throw and handle lots of exceptions internally - usually when complex filters/expressions are involved. When running in VS the debugger will inspect every exception thrown by the code since depending on your debugging settings it may need to break on an exception. Rob On 6/6/12 9:53 AM, "Jose Antonio Mocholí Agües" <jmo...@ds...> wrote: >Hi everyone, > >I'm starting to use dotnetrdf and I've found an unexpected huge >performance difference between the tool SPARQL GUI and my test program. >I was using the same file and downloaded the library sourcecode to test >against the same code the tool is using. However, I was achieving a huge >difference in performance: for the same sparql query, dotnetrdf tool >gives results in 0.05s and my test code in around 4s. > >It took me a while but then I tried to execute my code outside VS and >got the same performance the tool was achieving. Could anyone explain >the reason for this behaviour? > >Best regards. >Jose A. > > >-------------------------------------------------------------------------- >---- >Live Security Virtual Conference >Exclusive live event will cover all the ways today's security and >threat landscape has changed and how IT managers can respond. Discussions >will include endpoint security, mobile security and the latest in malware >threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >_______________________________________________ >dotNetRDF-Support mailing list >dot...@li... >https://lists.sourceforge.net/lists/listinfo/dotnetrdf-support |
From: Rob V. <rv...@do...> - 2012-06-06 17:17:12
|
Hi Jose Would you mind showing the exact code and data you were testing? There can be numerous reasons why performance might be so different. Particularly when running in VS there is some degree of debugging overhead inherent there. Also there are different backends and ways that a query can be executed so there may be unexpected overhead involved. If there is a performance problem I would certainly want to investigate the root cause so seeing sample data and code would help with that? Thanks, Rob Vesse On 6/6/12 9:53 AM, "Jose Antonio Mocholí Agües" <jmo...@ds...> wrote: >Hi everyone, > >I'm starting to use dotnetrdf and I've found an unexpected huge >performance difference between the tool SPARQL GUI and my test program. >I was using the same file and downloaded the library sourcecode to test >against the same code the tool is using. However, I was achieving a huge >difference in performance: for the same sparql query, dotnetrdf tool >gives results in 0.05s and my test code in around 4s. > >It took me a while but then I tried to execute my code outside VS and >got the same performance the tool was achieving. Could anyone explain >the reason for this behaviour? > >Best regards. >Jose A. > > >-------------------------------------------------------------------------- >---- >Live Security Virtual Conference >Exclusive live event will cover all the ways today's security and >threat landscape has changed and how IT managers can respond. Discussions >will include endpoint security, mobile security and the latest in malware >threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >_______________________________________________ >dotNetRDF-Support mailing list >dot...@li... >https://lists.sourceforge.net/lists/listinfo/dotnetrdf-support |
From: Jose A. M. A. <jmo...@ds...> - 2012-06-06 17:08:32
|
Hi everyone, I'm starting to use dotnetrdf and I've found an unexpected huge performance difference between the tool SPARQL GUI and my test program. I was using the same file and downloaded the library sourcecode to test against the same code the tool is using. However, I was achieving a huge difference in performance: for the same sparql query, dotnetrdf tool gives results in 0.05s and my test code in around 4s. It took me a while but then I tried to execute my code outside VS and got the same performance the tool was achieving. Could anyone explain the reason for this behaviour? Best regards. Jose A. |
From: Rob V. <rv...@do...> - 2012-06-04 16:39:10
|
What is the error message? I'm afraid we're not mind readers and can't diagnose the problem without seeing the error message Note that if the error message is not particularly helpful you can use the static Options.HttpDebugging and Options.HttpFullDebugging properties which turn on printing of HTTP requests and responses to Console.Out this will generate other errors because they'll consume the HTTP response but the trace is useful for seeing what is going on. If you can provide the error message and ideally a HTTP debug trace as well it'll be much easier to diagnose the problem Rob From: Inbamuthumalai Shanmugavel <in...@st...> Date: Monday, June 4, 2012 4:01 AM To: Cray Employee <rv...@do...> Subject: Starting with RDF > Hi , > > I am new to the RdfDotNet. But of course know the .NET very well. I am trying > the following, copied your sample and convert to asp.net application and it > throws error as HTTP exception. Can I sparql query to remote end point via > asp.net?. It works well with windows application. > > private void test() > { > //Define a remote endpoint > //Use the DBPedia SPARQL endpoint with the default Graph set to DBPedia > SparqlRemoteEndpoint endpoint = new > SparqlRemoteEndpoint(newUri("http://dbpedia.org/sparql"), > "http://dbpedia.org"); > > //Make a SELECT query against the Endpoint > SparqlResultSet results = endpoint.QueryWithResultSet("SELECT DISTINCT > ?Concept WHERE {[] a ?Concept}"); > foreach (SparqlResult result in results) > { > Response.Write(result.ToString()); > } > > //Make a DESCRIBE query against the Endpoint > IGraph g = endpoint.QueryWithResultGraph("DESCRIBE "); > foreach (Triple t in g.Triples) > { > Response.Write(t.ToString()); > } > } > > What am I doing wrong? > > > Thanks in advance. > > > Thanks & Regards, > Inba S. > > > ------------------------------------------------------------------- > The information contained in this message may be CONFIDENTIAL and is > intended for the addressee only. Any unauthorised use, dissemination of the > information or copying of this message is prohibited. If you are not the > addressee, please notify the sender immediately by return e-mail and delete > this message. > Thank you |
From: Rob V. <rv...@do...> - 2012-06-04 16:31:33
|
> > Apologies I should have been clearer > > GetXNode() methods only get Nodes if they appear in the graph AND occur in the > Subject/Object position. The URIs you are referencing appear in the Predicate > position so won't be retrieved. > > In general it is best to always use CreateXNode() methods instead. > > Rob > > From: 堆烟・雷云纹(Jerin Lee) <jer...@ya...> > Reply-To: 堆烟・雷云纹(Jerin Lee) <jer...@ya...> > Date: Saturday, June 2, 2012 3:06 AM > To: Cray Employee <rv...@do...> > Subject: Help - 回复: [dotNetRDF-Support] A question about Graph.GetUriNode > >> Hi Rob >> Thanks for your reply. I think you ignored my turtle content. >> [Turtle Content] >> @base <http://www.chuci.info/schema/synonymset#>. >> @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>. >> @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>. >> @prefix xsd: <http://www.w3.org/2001/XMLSchema#>. >> @prefix ss: <http://www.chuci.info/schema/synonymset#>. >> ss:Concept ss:id "e31c44b7f8994d399865d8c315b77daa"; >> ss:name "gender"@en-us, >> "性别"@zh-cn; >> ss:uri <http://schema.org/gender>, >> <http://xmlns.com/foaf/0.1/gender>. >> >> According to the turtle content, GetUriNode( new Uri( >> "http://www.chuci.info/schema/synonymset#uri" ) ) SHOULD return a node. But >> in fact it returns null all the time. >> This is my code -- In order to get uris list from the turtle: >> INode nodeConcept = g.GetUriNode( new Uri( >> "http://www.chuci.info/schema/synonymset#Concept") ); >> INode nodeUri = g.GetUriNode( new Uri( >> "http://www.chuci.info/schema/synonymset#uri" ) ); >> var tmp = g.GetTriplesWithSubjectPredicate( nodeConcept, nodeUri ) >> .Where( t => t.Object.NodeType == NodeType.Uri ) >> .Select( t => ( (UriNode)t.Object ).Uri.ToString() ); >> In the above code, nodeUri is always null. So I append some hack code: >> if(nodeUri == null) nodeUri = g.CreateUriNode( new Uri( >> "http://www.chuci.info/schema/synonymset#uri") ); >> Am I in a wrong way using dotNetRDF? >> >> Thank you very much! >> Jerin >> 2012-6-2 >> >> |我的脚步在落日里 >> |我的影子在冬风里 >> |我的梦在旷野里 >> |在月亮升起的时候 >> |我会遥望 >> |我看到 >> |我长出了翅膀 >> >> >> >> >> >> >> 发件人: Rob Vesse <rv...@do...> >> 收件人: 堆烟・雷云纹(Jerin Lee) <jer...@ya...>; dotNetRDF User Help and >> Support <dot...@li...> >> 发送日期: 2012年6月2日, 星期六, 上午 12:28 >> 主题: Re: [dotNetRDF-Support] A question about Graph.GetUriNode >> >> >> Hi Jerin >> >> There is a key difference between GetUriNode() and CreateUriNode() which I >> guess is not as clearly explained as it might be in the documentation. It is >> mentioned in [1] under the Selecting Nodes section but not explicitly called >> out in the intellisense documentation >> >> The difference is that GetUriNode() retrieves a Node only if it appears in >> the Graph and returns null otherwise. >> >> Whereas CreateUriNode() creates a new node associated with that Graph and >> always gives a value (or in the case of a malformed Qname used to create a >> URI an exception) >> >> We'll adjust the documentation appropriately to make this clearer >> >> Thanks, >> >> Rob Vesse >> >> From: 堆烟・雷云纹(Jerin Lee) <jer...@ya...> >> Reply-To: 堆烟・雷云纹(Jerin Lee) <jer...@ya...>, dotNetRDF User Help >> and Support <dot...@li...> >> Date: Thursday, May 31, 2012 11:01 PM >> To: "dot...@li..." >> <dot...@li...> >> Subject: [dotNetRDF-Support] A question about Graph.GetUriNode >> >>> Hi, Guys. >>> I love the framework very much! But now I'm confused about the method: >>> Graph.GetUriNode. >>> The turtle content is at the bottom of this letter. >>> In my code: >>> INode nodeConcept = g.GetUriNode( new Uri( >>> "http://www.chuci.info/schema/synonymset#Concept") ); >>> INode nodeUri = g.GetUriNode( new Uri( >>> "http://www.chuci.info/schema/synonymset#uri" ) ); >>> >>> The first variable nodeConcept is right, but nodeUri is always null :( >>> I add the following code, I don't know why, but it works well finally. >>> if(nodeUri == null) >>> nodeUri = g.CreateUriNode( new Uri( >>> "http://www.chuci.info/schema/synonymset#uri") ); >>> >>> In normal sense GetUriNode should work, but instead CreateUriNode works >>> correctly. >>> I tried but found nothing helpful at dotnetrdf.org, so I write this letter. >>> >>> [Turtle Content] >>> >>> @base <http://www.chuci.info/schema/synonymset#>. >>> @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>. >>> @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>. >>> @prefix xsd: <http://www.w3.org/2001/XMLSchema#>. >>> @prefix ss: <http://www.chuci.info/schema/synonymset#>. >>> >>> ss:Concept ss:id "e31c44b7f8994d399865d8c315b77daa"; >>> ss:name "gender"@en-us, >>> "性别"@zh-cn; >>> ss:uri <http://schema.org/gender>, >>> <http://xmlns.com/foaf/0.1/gender>. >>> >>> >>> Waiting your answer! >>> Thank you very much! >>> Jerin >>> 2012-6-1 >> >> >> |
From: Rob V. <rv...@do...> - 2012-06-01 16:29:01
|
Hi Jerin There is a key difference between GetUriNode() and CreateUriNode() which I guess is not as clearly explained as it might be in the documentation. It is mentioned in [1] under the Selecting Nodes section but not explicitly called out in the intellisense documentation The difference is that GetUriNode() retrieves a Node only if it appears in the Graph and returns null otherwise. Whereas CreateUriNode() creates a new node associated with that Graph and always gives a value (or in the case of a malformed Qname used to create a URI an exception) We'll adjust the documentation appropriately to make this clearer Thanks, Rob Vesse From: 堆烟・雷云纹(Jerin Lee) <jer...@ya...> Reply-To: 堆烟・雷云纹(Jerin Lee) <jer...@ya...>, dotNetRDF User Help and Support <dot...@li...> Date: Thursday, May 31, 2012 11:01 PM To: "dot...@li..." <dot...@li...> Subject: [dotNetRDF-Support] A question about Graph.GetUriNode > Hi, Guys. > I love the framework very much! But now I'm confused about the method: > Graph.GetUriNode. > The turtle content is at the bottom of this letter. > In my code: > INode nodeConcept = g.GetUriNode( new Uri( > "http://www.chuci.info/schema/synonymset#Concept") ); > INode nodeUri = g.GetUriNode( new Uri( > "http://www.chuci.info/schema/synonymset#uri" ) ); > > The first variable nodeConcept is right, but nodeUri is always null :( > I add the following code, I don't know why, but it works well finally. > if(nodeUri == null) > nodeUri = g.CreateUriNode( new Uri( > "http://www.chuci.info/schema/synonymset#uri") ); > > In normal sense GetUriNode should work, but instead CreateUriNode works > correctly. > I tried but found nothing helpful at dotnetrdf.org, so I write this letter. > > [Turtle Content] > > @base <http://www.chuci.info/schema/synonymset#>. > @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>. > @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>. > @prefix xsd: <http://www.w3.org/2001/XMLSchema#>. > @prefix ss: <http://www.chuci.info/schema/synonymset#>. > > ss:Concept ss:id "e31c44b7f8994d399865d8c315b77daa"; > ss:name "gender"@en-us, > "性别"@zh-cn; > ss:uri <http://schema.org/gender>, > <http://xmlns.com/foaf/0.1/gender>. > > > Waiting your answer! > Thank you very much! > Jerin > 2012-6-1 > > |我的脚步在落日里 > |我的影子在冬风里 > |我的梦在旷野里 > |在月亮升起的时候 > |我会遥望 > |我看到 > |我长出了翅膀 > ------------------------------------------------------------------------------ > Live Security Virtual Conference Exclusive live event will cover all the ways > today's security and threat landscape has changed and how IT managers can > respond. Discussions will include endpoint security, mobile security and the > latest in malware threats. > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/_____________________ > __________________________ dotNetRDF-Support mailing list > dot...@li... > https://lists.sourceforge.net/lists/listinfo/dotnetrdf-support |
From: 堆烟·雷云纹(Jerin L. <jer...@ya...> - 2012-06-01 06:01:19
|
Hi, Guys. I love the framework very much! But now I'm confused about the method: Graph.GetUriNode. The turtle content is at the bottom of this letter. In my code: INode nodeConcept = g.GetUriNode( new Uri( " http://www.chuci.info/schema/synonymset# Concept") ); INode nodeUri = g.GetUriNode( new Uri( " http://www.chuci.info/schema/synonymset#uri" ) ); The first variable nodeConcept is right, but nodeUri is always null :( I add the following code, I don't know why, but it works well finally. if(nodeUri == null) nodeUri = g.CreateUriNode( new Uri( " http://www.chuci.info/schema/synonymset#uri" ) ); In normal sense GetUriNode should work, but instead CreateUriNode works correctly. I tried but found nothing helpful at dotnetrdf.org, so I write this letter. [Turtle Content] @base <http://www.chuci.info/schema/synonymset#>. @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>. @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>. @prefix xsd: <http://www.w3.org/2001/XMLSchema#>. @prefix ss: <http://www.chuci.info/schema/synonymset#>. ss:Concept ss:id "e31c44b7f8994d399865d8c315b77daa"; ss:name "gender"@en-us, "性别"@zh-cn; ss:uri <http://schema.org/gender>, <http://xmlns.com/foaf/0.1/gender>. Waiting your answer! Thank you very much! Jerin 2012-6-1 |我的脚步在落日里 |我的影子在冬风里 |我的梦在旷野里 |在月亮升起的时候 |我会遥望 |我看到 |我长出了翅膀 |
From: anji r. <anj...@gm...> - 2012-04-12 06:26:24
|
Hi , Many many thanks Rob..... now, i am not getting the error.... I am getting results but it is showing '0' rows.... i was new to SPARQL, i will try to get the terms from my ontology file.... Thank u... Regards Anji reddy. |
From: Rob V. <rv...@vd...> - 2012-04-11 16:14:08
|
Hi Anji You must explicitly define any prefixes that you want to use in your queries. So your query should look like the following: Object results = g.ExecuteQuery("PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX owl: <http://www.w3.org/2002/07/owl#> SELECT * WHERE { ?Bonds rdfs:subClassOf owl:class} "); Hope this helps, Rob On 4/11/12 2:10 AM, anji reddy wrote: Hi, I am getting an error while querying .owl file from my application...... The error code : The Namespace URI for the given Prefix 'owl' is not known by the in-scope NamespaceMapper in the line ---------- Object results = g.ExecuteQuery("SELECT * WHERE { ?Bonds rdfs:subClassOf owl:class} "); Here, I am attaching my .owl file (developed by using protege tool) and the below application code. i want read synonyms of Bonds from my owl file..... pls help me... i am not getting much more from it.... Sample Code: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using VDS.RDF; using VDS.RDF.Query; using VDS.RDF.Parsing; using VDS.RDF.Web; namespace SPARQL { public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { //Define your Graph here - it may be better to use a QueryableGraph if you plan //on making lots of Queries against this Graph as that is marginally more performant IGraph g = new Graph(); //Load some data into your Graph using the LoadFromFile() extension method g.LoadFromFile(@"C:\Users\admin\Desktop\UDDI\SPARQL\SPARQL\FinancialInvestme nt.owl"); //Use the extension method ExecuteQuery() to make the query against the Graph try { Object results = g.ExecuteQuery("SELECT * WHERE { ?Bonds rdfs:subClassOf owl:class} "); } if (results is SparqlResultSet) { //SELECT/ASK queries give a SparqlResultSet SparqlResultSet rset = (SparqlResultSet)results; foreach (SparqlResult r in rset) { //Do whatever you want with each Result } } else if (results is IGraph) { //CONSTRUCT/DESCRIBE queries give a IGraph IGraph resGraph = (IGraph)results; foreach (Triple t in resGraph.Triples) { //Do whatever you want with each Triple } } else { //If you don't get a SparqlResutlSet or IGraph something went wrong //but didn't throw an exception so you should handle it here Console.WriteLine("ERROR"); } } catch (RdfQueryException queryEx) { //There was an error executing the query so handle it here Console.WriteLine(queryEx.Message); } } } } ---------------------------------------------------------------------------- -- Better than sec? Nothing is better than sec when it comes to monitoring Big Data applications. Try Boundary one-second resolution app monitoring today. Free. http://p.sf.net/sfu/Boundary-dev2dev _______________________________________________ dotNetRDF-Support mailing list dot...@li... https://lists.sourceforge.net/lists/listinfo/dotnetrdf-support |
From: Rob V. <rv...@do...> - 2012-04-11 06:13:00
|
Hi Sandhya I am slightly unclear what you are asking here? Do you have some static RDF dump you wish to expose as a SPARQL endpoint or do you have some SQL database which you want to dynamically map to RDF and SPARQL over? The former can be done but may not be that performant if your dataset is large (million triples plus) and for anything more than a few hundred thousand triples I'd strongly suggest putting the RDF into a native triple store anyway and using it's SPARQL endpoint. You can then build apps that use dotNetRDF to talk to that store. If it is the latter then dotNetRDF does not have the ability to do this currently unless your SQL store was created using our Data.Sql library in which case the data is simply whatever RDF you put into there and is stored in our own well defined schema for encoding RDF. There is capability for plugging arbitrary backends into the SPARQL engine but this is fairly complex and I'm not sure that it necessarily fits your use case as from your email I'm unclear on exactly what you are trying to achieve. Some more details would be helpful Regards, Rob On 4/10/12 3:28 AM, sandhya wrote: Hi Rob, We are in the process of creating our own SPARQL endpoint where users can query. Towards this, we have converted the data in RDF format in the SQL Server store. Rdf:type has not been specified. We are not clear as to how can the data schema be defined in dotnetrdf. Please guide us in this direction. Regards Sandhya ---------------------------------------------------------------------------- -- Better than sec? Nothing is better than sec when it comes to monitoring Big Data applications. Try Boundary one-second resolution app monitoring today. Free. http://p.sf.net/sfu/Boundary-dev2dev _______________________________________________ dotNetRDF-Support mailing list dot...@li... https://lists.sourceforge.net/lists/listinfo/dotnetrdf-support |
From: sandhya <sa...@fo...> - 2012-04-10 10:43:50
|
Hi Rob, We are in the process of creating our own SPARQL endpoint where users can query. Towards this, we have converted the data in RDF format in the SQL Server store. Rdf:type has not been specified. We are not clear as to how can the data schema be defined in dotnetrdf. Please guide us in this direction. Regards Sandhya |
From: Rob V. <rv...@do...> - 2012-04-05 16:21:31
|
Hi Mona This means that your data has blank nodes in. APIs are free to relabel blank nodes however they wish and _:autosN is simply dotNetRDF's default labelling scheme. Hope this helps, Rob On 4/5/12 4:40 AM, dem...@cs... wrote: > Dear Sir/Madam, > > I am Mona Demaidi a first year PhD student at the university of > Manchester. I am currently using the dotnetrdf library. While applying the > sparql query I received the following result _:autos(with a number) what > does this actually mean ?? Could you please help me. > Regards, > Mona Demaidi > > ------------------------------------------------------------------------------ > Better than sec? Nothing is better than sec when it comes to > monitoring Big Data applications. Try Boundary one-second > resolution app monitoring today. Free. > http://p.sf.net/sfu/Boundary-dev2dev > _______________________________________________ > dotNetRDF-Support mailing list > dot...@li... > https://lists.sourceforge.net/lists/listinfo/dotnetrdf-support |
From: <dem...@cs...> - 2012-04-05 11:41:05
|
Dear Sir/Madam, I am Mona Demaidi a first year PhD student at the university of Manchester. I am currently using the dotnetrdf library. While applying the sparql query I received the following result _:autos(with a number) what does this actually mean ?? Could you please help me. Regards, Mona Demaidi |
From: Rob V. <rv...@do...> - 2012-04-03 16:09:19
|
Hi Anji If the OWL file is encoded as RDF/XML (which tends to be the usual) then dotNetRDF can read it and represent it as triples. Otherwise dotNetRDF has no special OWL support so it doesn't understand axioms, do reasoning etc but if you can work with your OWL purely at the triple level then you can use dotNetRDF for this Regards, Rob Vesse On 4/2/12 9:52 PM, anji reddy wrote: > Thanks for reply Rob, Now, I fixed the error.... One more > question i have to ask u regarding my project... > in that i developed an ontology in .OWL format.... i want to query the > file by using SPARQL for getting > related terms of the domain ontology in C# .NET.... can i use > dotNetRDF for OWL format files?? i heard that > dotNetRDF supports only RDF file formats, But OWL builds on top of > RDF.... is there any mapping > between them or any synchronization mechanisms exists.... Pls help me > regarding this issue.... |
From: anji r. <anj...@gm...> - 2012-03-31 16:20:45
|
Dear sir/madam, I have a OWL/RDF financial domain file locally which is developed by using protege tool, Now i am using dotNetRDF library to query my local OWL/RDF file through microsoft visual studio C# programatically to get the synonym or related terms/words according to the user input. I followed some code from a blog, but it is giving the ERROR that file doesn't exist. The ERROR Line is: g.LoadFromFile(" FinancialInvestment.rdf"); I tried in different ways of giving path including of copyied file to the project bin folder etc... but unsucceded. could u please help regarding this.... The following code was used by me...... //Define your Graph here IGraph g = new Graph(); //Load some data into your Graph using the LoadFromFile() extension method g.LoadFromFile("myfile.rdf"); //Use the extension method ExecuteQuery() to make the query against the Graph try { Object results = g.ExecuteQuery("SELECT * WHERE { ?s a ?type }"); if (results is SparqlResultSet) { //SELECT/ASK queries give a SparqlResultSet SparqlResultSet rset = (SparqlResultSet)results; foreach (SparqlResult r in rset) { //Do whatever you want with each Result } } else if (results is IGraph) { //CONSTRUCT/DESCRIBE queries give a IGraph IGraph resGraph = (IGraph)results; foreach (Triple t in resGraph.Triples) { //Do whatever you want with each Triple } } else { //If you don't get a SparqlResutlSet or IGraph something went wrong //but didn't throw an exception so you should handle it here Console.WriteLine("ERROR"); } } catch (RdfQueryException queryEx) { //There was an error executing the query so handle it here Console.WriteLine(queryEx.Message); } |
From: Rob V. <rv...@do...> - 2012-03-21 19:37:37
|
Hi All This email is a request for feedback on a number of proposed API changes intended for the 0.7.0 release of dotNetRDF. I am currently working on 0.6.2 which is primarily a bug fix and minor feature release but wanted to give those of you that may have a vested interest in some changes I am proposing for the new major release. The motivation for these is primarily to remove some legacy APIs left over from much earlier versions of the library and generally to clean up the API for 0.7.x as they will be the last Beta releases before we move into stable release candidates and eventually a stable 1.0.0 release. Each proposal represents a single proposed change and are up for discussion individually. Proposal 1 - Remove the legacy ISelector API [CORE-209] The ISelector API pre-dates SPARQL support in the library and is generally extremely inefficient way of querying data because it relies upon iterating over all the triples in a graph or triple store. This API is already marked as obsolete throughout the 0.6.x codebase Everything that the API does can be achieved more efficiently either via SPARQL or via code utilising other APIs Proposal 2 - Remove the BaseNodeCollection API [CORE-210] Currently a IGraph is associated with a BaseTripleCollection and a BaseNodeCollection, while the triple collection is widely used the node collection is not (AFAIK) - in fact we only use it once (other than populating it as data is added to a graph) in our entire code base. It's functionality is limited and the same information may be obtained by applying LINQ expressions over the triple collection instead. In order to preserve backwards compatibility with existing code to some degree it is proposed to change the return type of the Nodes property to be IEnumerable<INode> Proposal 3 - Change default graph for in-memory SPARQL to not be the union graph [CORE-211] Currently our in-memory datasets treat the default graph to be the union of all graphs in the dataset. In order to better align our behaviour with other tools it is proposed that this behaviour be modified so that the default graph is the unnamed graph. To preserve compatibility with existing code the old behaviour will still be accessible. Proposal 4 - Change the signature of the IStoreReader and IStoreWriter interfaces to align with the other reader/writer interfaces [CORE-212] This change will remove the use of IStoreParams as an argument to a IStoreReader/IStoreWriter and instead just use filenames and standard readers and writers as the IRdfReader/IRdfWriter and ISparqlResultsReader/ISparqlResultsWriter interfaces do currently. The primary motivation for this is that the IStoreParams paradigm is unwieldly and originates prior to the full Storage API (IGenericIOManager) we now have in place. This would mean removing some existing instances of IStoreReader/IStoreWriter which do input/output with non file/stream based storage. In all cases the same read/write storage can be achieved by using other APIs in your code. Issue References: [CORE-209] - http://dotnetrdf.org/tracker/Issues/IssueDetail.aspx?id=209 [CORE-210] - http://dotnetrdf.org/tracker/Issues/IssueDetail.aspx?id=210 [CORE-211] - http://dotnetrdf.org/tracker/Issues/IssueDetail.aspx?id=211 [CORE-212] - http://dotnetrdf.org/tracker/Issues/IssueDetail.aspx?id=212 Comments and feedback encouraged by anybody who may be affected or has other proposals for future changes not discussed here Regards, Rob Vesse |
From: Rob V. <rv...@do...> - 2012-03-06 18:00:50
|
Hi Aida Your problem is that the endpoint you are providing is not actually an endpoint, SNORQL is simply a web interface which talks to an underlying SPARQL endpoint via AJAX. Trying to treat SNORQL as an endpoint will not work as you will simply get back the HTML SNORQL page which is what the error message is complaining about - a web page is not a result set. Notice at the top of the SNORQL page it says "SPARQL Explorer for http://data.linkedmdb.org/sparql" - this URL is the actual SPARQL endpoint you want to send the query to, so if you modify your code to use that as the endpoint URL it should work fine Hope this helps Rob Vesse On 3/6/12 7:16 AM, Aida Martinez wrote: > Hi, > > I'm trying to use your dotNetRDF library but I´m obtaining the > following exception: > {"The SPARQL Endpoint returned unexpected Content Type 'text/html', > this error may be due to the given URI not returning a SPARQL Result Set"} > > This is my code: > SparqlRemoteEndpoint endpoint = new SparqlRemoteEndpoint(new > Uri("http://data.linkedmdb.org/snorql")); > > //Make a SELECT query against the Endpoint > string query = @"PREFIX movie: > <http://data.linkedmdb.org/resource/movie/> > SELECT ?o > WHERE { > <http://data.linkedmdb.org/resource/director/187> movie:director_name ?o > }"; > try > { > SparqlResultSet result = > endpoint.QueryWithResultSet(query); > } > catch (Exception ex) > { string exe; } > > I don´t have any idea why isn´t working. Can you help? > > Regards. > -- > Aída Martínez > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > > > _______________________________________________ > dotNetRDF-Support mailing list > dot...@li... > https://lists.sourceforge.net/lists/listinfo/dotnetrdf-support |
From: Aida M. <ama...@gm...> - 2012-03-06 15:16:35
|
Hi, I'm trying to use your dotNetRDF library but I´m obtaining the following exception: {"The SPARQL Endpoint returned unexpected Content Type 'text/html', this error may be due to the given URI not returning a SPARQL Result Set"} This is my code: SparqlRemoteEndpoint endpoint = new SparqlRemoteEndpoint(new Uri(" http://data.linkedmdb.org/snorql")); //Make a SELECT query against the Endpoint string query = @"PREFIX movie: < http://data.linkedmdb.org/resource/movie/> SELECT ?o WHERE { < http://data.linkedmdb.org/resource/director/187> movie:director_name ?o }"; try { SparqlResultSet result = endpoint.QueryWithResultSet(query); } catch (Exception ex) { string exe; } I don´t have any idea why isn´t working. Can you help? Regards. -- Aída Martínez |
From: Rob V. <rv...@do...> - 2012-03-04 02:47:44
|
Due to a critical bug found with Stardog support in the 0.6.0 Beta release we have taken the step of making a 0.6.1 maintenance release which fixes the bug. It is only necessary to upgrade if you require Stardog support, there are no other bug fixes or feature changes in this release. Apologies for any inconvinience Regards, Rob Vesse |
From: Hugh W. <hwi...@op...> - 2012-02-22 03:31:59
|
Hi Rob, Thanks for making a fix in the dotNetRDF library ... Best Regards Hugh Williams Professional Services OpenLink Software, Inc. // http://www.openlinksw.com/ 10 Burlington Mall Road, Suite 265, Burlington MA 01803 Weblog -- http://www.openlinksw.com/blogs/ LinkedIn -- http://www.linkedin.com/company/openlink-software/ Twitter -- http://twitter.com/OpenLink Google+ -- http://plus.google.com/100570109519069333827/ Facebook -- http://www.facebook.com/OpenLinkSoftware Universal Data Access, Integration, and Management Technology Providers On 21 Feb 2012, at 17:01, Rob Vesse wrote: > No that is not exposed in the public API anywhere but can be fixed internally and I have just done so, unfortunately I already made the 0.6.0 release this past weekend so the fix won't hit an official release until 0.6.1 now > > Rob > > On 2/21/12 6:44 AM, Hugh Williams wrote: >> >> Hi Sherif / Rob, >> >> The Virtuoso ADO.Net Provider DBcommand class has a detault CommandTImeout property value of 30 seconds, as detailed at: >> >> http://docs.openlinksw.com/virtuoso/virtclientref.html#vcrvirtuosocommandclass >> >> Which would be the timeout you are hitting, so does the dotNetRDF library allow this property value to be set so it can be increased as required ? >> >> Best Regards >> Hugh Williams >> Professional Services >> OpenLink Software, Inc. // http://www.openlinksw.com/ >> 10 Burlington Mall Road, Suite 265, Burlington MA 01803 >> Weblog -- http://www.openlinksw.com/blogs/ >> LinkedIn -- http://www.linkedin.com/company/openlink-software/ >> Twitter -- http://twitter.com/OpenLink >> Google+ -- http://plus.google.com/100570109519069333827/ >> Facebook -- http://www.facebook.com/OpenLinkSoftware >> Universal Data Access, Integration, and Management Technology Providers >> >> On 17 Feb 2012, at 22:10, sherif kandel wrote: >> >>> sorry for being late, >>> The stack trace of the exception is: >>> >>> System.SystemException was caught >>> Message=Timeout expired. >>> Source=OpenLink.Data.Virtuoso >>> StackTrace: >>> at OpenLink.Data.Virtuoso.Future.GetResult(ISession session, FutureList futures, Boolean remove) >>> at OpenLink.Data.Virtuoso.Future.GetNextResult(ISession session, FutureList futures) >>> at OpenLink.Data.Virtuoso.ManagedCommand.ProcessResult(Boolean needEvl) >>> at OpenLink.Data.Virtuoso.ManagedCommand.Execute(String query) >>> at OpenLink.Data.Virtuoso.VirtuosoCommand.ExecuteReader(CommandBehavior behavior) >>> at OpenLink.Data.Virtuoso.VirtuosoCommand.ExecuteDbDataReader(CommandBehavior behavior) >>> at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior) >>> at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) >>> at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) >>> at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) >>> at VDS.RDF.Storage.VirtuosoManager.Query(IRdfHandler rdfHandler, ISparqlResultsHandler resultsHandler, String sparqlQuery) >>> at VDS.RDF.Storage.VirtuosoManager.Query(String sparqlQuery) >>> at relAlgorithm.QueryProcessor.doQuery(String queryText) in C:\Users\Sherif\Dropbox\Graduation project -Sherif\[Prototype]\relalgorithm-lt\relAlgorithm\relAlgorithm\QueryProcessor.cs:line 138 >>> InnerException: >>> >>> I know for sure it times out after 30 seconds because I made a timer to count the time from sending the query to the catch{} , it displayed 30.xxxx seconds >>> ------------------------------------------------------------------------------ >>> Virtualization & Cloud Management Using Capacity Planning >>> Cloud computing makes use of virtualization - but cloud computing >>> also focuses on allowing computing to be delivered as a service. >>> http://www.accelacomm.com/jaw/sfnl/114/51521223/_______________________________________________ >>> Virtuoso-users mailing list >>> Vir...@li... >>> https://lists.sourceforge.net/lists/listinfo/virtuoso-users >> > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d_______________________________________________ > Virtuoso-users mailing list > Vir...@li... > https://lists.sourceforge.net/lists/listinfo/virtuoso-users |