» Home » triples » Page 1
How big is a billion triples?
Category : 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.


View Replies

TAGS : billion triples

querying rdf triples
Category : 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


View Replies

TAGS : querying triples

All possible Pythagorean Triples
Category : 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

View Replies


Calculating pythagorean triples
Category : 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 400-500 since I a

View Replies


finding pythagorean triples (a,b,c) with a <=200
Category : 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


View Replies


pythagorean triples exercise
Category : 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


View Replies


Pig transform triples to columns
Category : Web Design

I have the following data structure (stored in triples)


id1 type1 data1
id1 type2 data2
id2 type1 data3
id2 type2 data4

I'd like to run it thought pig to get a table like this:


type1,type1
id1,data1,data2
id2,data3,data4

I can only think of it solving through a number of filters and joins. I'd a


View Replies


Parsing N-Triples Via Streaming
Category : Programming Languages

I was fairly confused about this for some time but I finally learned how to parse a large N-Triples RDF store (.nt) using Raptor and the Redland Python Extensions.


A common example is to do the following:


import RDF
parser=RDF.Parser(name="ntriples")
model=RDF.Model()
stream=parser.parse_into_model(model,"file:./mybigfile.nt")
for triple in model:<

View Replies


How to Solve Pythagorean Triples
Category : 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

View Replies


How to Graph Pythagorean Triples
Category : Education
Pythagorean triples are right triangles whose sides, in length, form a ratio of 3:4:5, in which the first two sides are the length and the third is the hypotenuse. For instance, a triangle could literally have sides of length 3, 4, and 5, or the sides could be multiples of the 3, 4, and 5 proportions, such as 6, 8, and 10. You can represent these triangles on a graph.Difficulty:ModerateInstruction

View Replies


Next
2012 / 2017 Copyrights BigHow , All Rights Reserved .