querying rdf triples 
by orson in Coding 

How can I write sparql query where I can compare the variables (?a, ?b),
if I have the following eg? (something's wrong with this eg?): <ont:XXXXX rdf:about="http://www.myOntDomain#C">
<ro:part_of rdf:resource="http://www.myOntDomain#A">
<ro:part_of rdf:resource="http://www.myOntDomain#B"> </ont:XXXXX>
This doesn


How big is a billion triples? 
by Tom Clark in Databases 

Is it possible to relate the size of a triple store to a rough
equivalence in terms of a RDBMS? Or would this vary too much based on the
type of data stored (in my case text content of a CMS) I'm
trying to get my head round how a 800MB database compares to a 1.7Billion
triple triple store. I'm fully prepared to be told this is a daft
question.

All possible Pythagorean Triples 
by SnuggleTheBear in Programming Languages 

Here is the question Find all Pythagorean Triples for side1,
side2 and hypotenuse all no longer than 500. Use a triple nested for loops
that tries possibilities. The below is my attempt #include <iostream> #include <iomanip> using
namespace std; int main() { int side1 = 0; int
side2 = 0; int rightS


finding pythagorean triples (a,b,c) with a <=200 
by besn in Development Tools & Services 

In my previous post on this subject i have made little progress (not
blaming anyone except myself!) so i'll try to approach my problem statement
differently. how do i go about writing the algorithm to
generate a list of primitive triples? all i have to start with
is: a) the basic theorem: a^2 + b^2 = c^2 b) the fact that the small sid

How to Generate Pythagorean Triples 
by danielsdesk in Education 

According to the Pythagorean theorem, the square of the length of a right
triangle's hypotenuse equals the squares of the two shorter lengths. The
Pythagorean theorem can also be written as a^2 + b^2 = c^2. Sets of values
that fulfill this theorem are called Pythagorean triples. For example, 3, 4
and 5 is a common Pythagorean triple; 3^2 + 4^2 = 5^2, because 9 + 16 = 25.
You can generate sets of

pythagorean triples exercise 
by Olympian Last in Development Tools & Services 

i need a quick hint regarding the following exercise question: Write a program that generates all Pythagorean triples whose small
sides are no larger than n. Try it with n <= 200. what is
"no longer than n" all about ?? exercise source: Java by
Dissection (Ira Pohl and Charlie McDowell) note: i found what
looks to be a very good post on pyth

AllegroGraph  UTF8 characters in NTriples 
by Hosein Mohtasham in Programming Languages 

When I use the AllegroGraph 4.6 Python API, I can use the
connection.addTriple() method to try to add a triple that ends in a literal
containing a unicode character (×): conn.addTriple( ...,
..., '5 × 10**5' )
This doesn't work. I get the
error: UnicodeDecodeError: 'ascii' codec can't decode
byte 0xc3 in position...
He

How to Solve Pythagorean Triples 
by kiirpi in Education 

A Pythagorean triple is a set of three positive integers that are solutions
to the Pythagorean theorem. That theorem states that, in any right triangle
(a triangle where one angle is 90 degrees), the square of the hypotenuse
(the longest side) is equal to the sum of the squares of the other two
sides. It is often written as a^2 + b^2 = c^2. To do this, first
assume you have been given a and

Calculating pythagorean triples 
by Anderson in Programming Languages 

I was writing some code to calculate Pythagorean triples, but then I got
some values which were not solutions. Here is the code: #include <iostream> #include <math.h> using
namespace std; int main() { int j, counter = 0; double
candidate, sqrnbr; for (int i = 400; i <= 500; i++) //note that the
range is only from 400500 since I a

Rules for Tennis Triples 
by Rit Li in Sports & Fitness 

Tennis triples, a unique tennis game, is an alternative to playing singles
or doubles. Many of the rules are the same as in singles or doubles with a
few minor changes. There are six players, compared to two or four, making
it a very social game. Playing triples may be a little confusing at first
and a little crowded. After a few games, however, you will soon learn the
subtleties and quickly maste

