This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Query 1 | |
SELECT (?o as ?o2) WHERE { ?s ?p ?o } ORDER BY ?o | |
# Query 2 | |
SELECT ?s WHERE { ?s ?p ?o } LIMIT 1 | |
# Error seen: | |
# parser error: syntax error, unexpected $end, expecting integer literal on line 1 parser error: rasqal_new_typed_literal failed on line 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
gcc -g -Wall -o rasqal-parsing rasqal-parsing.c `pkg-config rasqal --cflags --libs` | |
When this sequence of queries is parsed inside 4store this error is seen: | |
parser error: syntax error, unexpected $end, expecting integer literal on line 1 parser error: rasqal_new_typed_literal failed on line 1 | |
*/ | |
#include <rasqal.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
==92495== Invalid write of size 4 | |
==92495== at 0x2B0846: initstate (in /usr/lib/libSystem.B.dylib) | |
==92495== by 0x55B71: rasqal_random_init (in /Users/dajobe/dev/redland/rasqal/src/.libs/librasqal.3.dylib) | |
==92495== by 0x216DB: rasqal_evaluation_context_set_rand_seed (in /Users/dajobe/dev/redland/rasqal/src/.libs/librasqal.3.dylib) | |
==92495== by 0x29FD1: rasqal_query_prepare (in /Users/dajobe/dev/redland/rasqal/src/.libs/librasqal.3.dylib) | |
==92495== by 0x10000170C: main (in .libs/rasqal_limit_test) | |
==92495== Address 0x1000a7d30 is 32 bytes inside a block of size 288 free'd | |
==92495== at 0xD4AE: free (vg_replace_malloc.c:430) | |
==92495== by 0x21605: rasqal_free_evaluation_context (in /Users/dajobe/dev/redland/rasqal/src/.libs/librasqal.3.dylib) | |
==92495== by 0x2841A: rasqal_free_query (in /Users/dajobe/dev/redland/rasqal/src/.libs/librasqal.3.dylib) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/examples/example8.c b/examples/example8.c | |
index 408da74..62108da 100644 | |
--- a/examples/example8.c | |
+++ b/examples/example8.c | |
@@ -96,8 +96,9 @@ main(int argc, char *argv[]) | |
if(librdf_query_results_is_bindings(results) || | |
librdf_query_results_is_boolean(results)) { | |
- string = librdf_query_results_to_counted_string2(results, format, | |
- NULL, NULL, NULL, &length); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ utils/roqet | |
Rasqal RDF query utility 0.9.29 GIT 4c2eadf209c7ec13e5ec2e2835a5baef3b7a1503 | |
Rasqal home page: http://librdf.org/rasqal/ | |
Copyright (C) 2003-2011 David Beckett - http://www.dajobe.org/ | |
Copyright (C) 2003-2005 University of Bristol - http://www.bristol.ac.uk/ | |
License: LGPL 2.1 or newer, GPL 2 or newer, Apache 2.0 or newer. | |
See http://librdf.org/rasqal/LICENSE.html for full terms. | |
Try `roqet --help' for more information. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python | |
# | |
# Go through the Digg OAuth flow for an application and user | |
# to get back Digg OAuth access token + access token secret | |
# | |
# This code is in the Public Domain | |
# | |
try: | |
from cgi import parse_qs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
ROOT=$HOME/working-dir | |
cd $ROOT | |
URL='http://SOURCE-URL/' | |
DIR='DEST-DIR/' | |
pavuk \ | |
-mode sync \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$rdfString = "<foo> <bar> <baz> ."; | |
$storage = librdf_new_storage(librdf_php_get_world(), "memory", null, null); | |
$model = librdf_new_model(librdf_php_get_world(), $storage, null); | |
$parser = librdf_new_parser(librdf_php_get_world(), "ntriples", null, null); | |
$base_uri = librdf_new_uri(librdf_php_get_world(), "http://www.w3.org/1999/02/22-rdf-syntax-ns#"); | |
librdf_parser_parse_string_into_model($parser, $rdfString, $base_uri, $model); | |
librdf_free_parser($parser); | |
librdf_new_uri(librdf_php_get_world(), "http://example/1"); | |
librdf_new_node(librdf_php_get_world()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{$C3000} | |
program bubble(input, output); | |
{ Program : bubble | |
Input : 1) Number of data items (maximum 500) | |
2) The data items Operation : Sorts the data using a bubble sort, the number of comparisons | |
and data accesses being counted. | |
Output : The number of comparisons and accesses and the sorted data in ascending order. Bugs : 1) The program does not check for invalid data type on input | |
so entering an invalid integer will cause a fatal crash. | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 4.8 if the pkgconfig files are present: | |
* gcc -g -o icu_is_nfc icu_is_nfc.c `pkg-config icu-uc --cflags --libs` | |
* | |
* Portable: | |
* gcc -g -o icu_is_nfc icu_is_nfc.c `icu-config --cppflags-searchpath --ldflags-searchpath` -licuuc | |
*/ | |
#include <stdio.h> | |
#include <unicode/unorm.h> |