|
From: Rob V. <rv...@do...> - 2013-04-02 23:48:02
|
If you have a time take a look at ValuedNodeExtensions, BaseLiteralNode and
ComparisonHelper
Those are the places off the top of my head that will parse values out of
literal values, I will try and get to look at this tomorrow if I have time
Rob
From: Tomek Pluskiewicz <to...@pl...>
Reply-To: dotNetRDF Bug Report tracking and resolution
<dot...@li...>
Date: Monday, April 1, 2013 9:46 PM
To: dotNetRDF Bug Report tracking and resolution
<dot...@li...>
Subject: Re: [dotNetRDF-bugs] Problem with aggregate
>
> I'd thought it would. Because it is about float numbers I suspect a
> globalization problem.
>
> Any suggestion where to look?
>
> On Apr 2, 2013 2:23 AM, "Rob Vesse" <rv...@do...> wrote:
>> Hey Tom
>>
>> This works fine for me on my box, so not sure what the issue is on your
>> machine
>>
>> Added as a unit test
>>
>> Rob
>>
>> On 4/1/13 1:33 PM, "Tomek Pluskiewicz" <plo...@gm...> wrote:
>>
>>> >Hi Rob
>>> >
>>> >Please try the following code:
>>> >
>>> >TripleStore store = new TripleStore();
>>> >
>>> >store.LoadFromUri(UriFactory.Create("http://semanticsage.home.lc/files/Lea
>>> >rningStyles.rdf"));
>>> >
>>> > Options.AlgebraOptimisation = false;
>>> >
>>> > var graph = (IGraph)store.ExecuteQuery(@"prefix sage:
>>> ><http://www.semanticsage.home.lc/LearningStyles.owl#>
>>> >prefix xsd: <http://www.w3.org/2001/XMLSchema#>
>>> >prefix : <http://semanticsage.home.lc/files/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
>>> >}");
>>> >
>>> >The above query works fine in Leviathan demo.
>>> >
>>> >However on my box instead of actual values I get all ?maxScore bound
>>> >to "0"@xsd:int. I'm running this using the latest dll from trunk,
>>> >
>>> >Thanks,
>>> >Tom
>>> >
>>> >--------------------------------------------------------------------------
>>> >----
>>> >Own the Future-Intel® Level Up Game Demo Contest 2013
>>> >Rise to greatness in Intel's independent game demo contest.
>>> >Compete for recognition, cash, and the chance to get your game
>>> >on Steam. $5K grand prize plus 10 genre and skill prizes.
>>> >Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
>>> >_______________________________________________
>>> >dotNetRDF-bugs mailing list
>>> >dot...@li...
>>> >https://lists.sourceforge.net/lists/listinfo/dotnetrdf-bugs
>>
>>
>>
>>
>>
>>
----------------------------------------------------------------------------->>
-
>> Own the Future-Intel(R) Level Up Game Demo Contest 2013
>> Rise to greatness in Intel's independent game demo contest. Compete
>> for recognition, cash, and the chance to get your game on Steam.
>> $5K grand prize plus 10 genre and skill prizes. Submit your demo
>> by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2
>> _______________________________________________
>> dotNetRDF-bugs mailing list
>> dot...@li...
>> https://lists.sourceforge.net/lists/listinfo/dotnetrdf-bugs
> ------------------------------------------------------------------------------
> Own the Future-Intel(R) Level Up Game Demo Contest 2013 Rise to greatness in
> Intel's independent game demo contest. Compete for recognition, cash, and the
> chance to get your game on Steam. $5K grand prize plus 10 genre and skill
> prizes. Submit your demo by 6/6/13.
> http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2_______________________
> ________________________ dotNetRDF-bugs mailing list
> dot...@li...
> https://lists.sourceforge.net/lists/listinfo/dotnetrdf-bugs
|