mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-26 15:23:48 +01:00
Move library tree where it belongs
This commit is contained in:
110
lib-src/redland/rasqal/tests/sparql/survey/Makefile.am
Normal file
110
lib-src/redland/rasqal/tests/sparql/survey/Makefile.am
Normal file
@@ -0,0 +1,110 @@
|
||||
# -*- Mode: Makefile -*-
|
||||
#
|
||||
# Makefile.am - automake file for Rasqal SPARQL tests
|
||||
#
|
||||
# Copyright (C) 2005-2008, David Beckett http://www.dajobe.org/
|
||||
# Copyright (C) 2005-2005, University of Bristol, UK http://www.bristol.ac.uk/
|
||||
#
|
||||
# This package is Free Software and part of Redland http://librdf.org/
|
||||
#
|
||||
# It is licensed under the following three licenses as alternatives:
|
||||
# 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version
|
||||
# 2. GNU General Public License (GPL) V2 or any newer version
|
||||
# 3. Apache License, V2.0 or any newer version
|
||||
#
|
||||
# You may not use this file except in compliance with at least one of
|
||||
# the above three licenses.
|
||||
#
|
||||
# See LICENSE.html or LICENSE.txt at the top of this package for the
|
||||
# complete terms and further detail along with the license texts for
|
||||
# the licenses in COPYING.LIB, COPYING and LICENSE-2.0.txt respectively.
|
||||
#
|
||||
|
||||
SPARQL_MANIFEST_FILES= manifest.ttl
|
||||
|
||||
SPARQL_MODEL_FILES= \
|
||||
survey-sample.ttl
|
||||
|
||||
SPARQL_TEST_FILES= \
|
||||
query-survey-1.rq query-survey-2.rq query-survey-3.rq \
|
||||
query-survey-8.rq query-survey-9.rq query-survey-10.rq \
|
||||
query-survey-11.rq query-survey-12.rq query-survey-13.rq
|
||||
|
||||
SPARQL_RESULT_FILES= \
|
||||
result-survey-1.ttl result-survey-2.ttl result-survey-3.ttl \
|
||||
result-survey-8.ttl result-survey-9.ttl result-survey-10.ttl \
|
||||
result-survey-11.ttl result-survey-12.ttl result-survey-13.ttl
|
||||
|
||||
# Test failures
|
||||
# survey-3
|
||||
# UNION
|
||||
EXPECTED_SPARQL_CORRECT_FAILURES= \
|
||||
survey-3
|
||||
|
||||
EXPECTED_SPARQL_CORRECT_FAILURES_COUNT=1
|
||||
|
||||
EXTRA_DIST= \
|
||||
$(SPARQL_MANIFEST_FILES) \
|
||||
$(SPARQL_MODEL_FILES) \
|
||||
$(SPARQL_TEST_FILES) \
|
||||
$(SPARQL_RESULT_FILES)
|
||||
|
||||
build-roqet:
|
||||
@(cd $(top_builddir)/utils ; $(MAKE) roqet)
|
||||
|
||||
build-sparql-lexer-test:
|
||||
@(cd $(top_builddir)/src ; $(MAKE) sparql_lexer_test)
|
||||
|
||||
build-sparql-parser-test:
|
||||
@(cd $(top_builddir)/src ; $(MAKE) sparql_parser_test)
|
||||
|
||||
|
||||
check-local: check-sparql-lexer check-sparql-parser \
|
||||
check-sparql-correct
|
||||
|
||||
check-sparql-lexer: build-sparql-lexer-test
|
||||
@set +e; result=0; \
|
||||
$(ECHO) "Testing legal SPARQL lexing"; \
|
||||
for test in $(SPARQL_TEST_FILES); do \
|
||||
$(ECHO) $(ECHO_N) "Checking $$test $(ECHO_C)"; \
|
||||
$(top_builddir)/src/sparql_lexer_test $(srcdir)/$$test >/dev/null; \
|
||||
status=$$?; \
|
||||
if test $$status != 0 -a $$status != 2 ; then \
|
||||
$(ECHO) FAILED returned status $$status; result=1; \
|
||||
else \
|
||||
$(ECHO) ok; \
|
||||
fi; \
|
||||
done; \
|
||||
set -e; exit $$result
|
||||
|
||||
check-sparql-parser: build-sparql-parser-test
|
||||
@set +e; result=0; \
|
||||
$(ECHO) "Testing legal SPARQL parsing"; \
|
||||
for test in $(SPARQL_TEST_FILES); do \
|
||||
$(ECHO) $(ECHO_N) "Checking $$test $(ECHO_C)"; \
|
||||
$(top_builddir)/src/sparql_parser_test $(srcdir)/$$test >/dev/null; \
|
||||
status=$$?; \
|
||||
if test $$status != 0 -a $$status != 2 ; then \
|
||||
$(ECHO) FAILED returned status $$status; result=1; \
|
||||
fails="$$fails $$test"; \
|
||||
else \
|
||||
$(ECHO) ok; \
|
||||
fi; \
|
||||
done; \
|
||||
set -e; exit $$result
|
||||
|
||||
check-sparql-correct: build-roqet $(srcdir)/../check-sparql
|
||||
@set +e; \
|
||||
$(ECHO) "Testing SPARQL correct"; \
|
||||
PATH=$(top_builddir)/utils:$(top_builddir)@RAPPER_PATH@:$$PATH \
|
||||
$(PERL) $(srcdir)/../check-sparql -s $(srcdir); \
|
||||
result=$$?; \
|
||||
if test $$result != 0 ; then \
|
||||
echo "Expecting test failures: $(EXPECTED_SPARQL_CORRECT_FAILURES)"; \
|
||||
if test $$result = $(EXPECTED_SPARQL_CORRECT_FAILURES_COUNT) ; then \
|
||||
echo "OK: Ignoring $$result expected test failures"; result=0; \
|
||||
else \
|
||||
echo "FAILED: $$result failures does not match expected $(EXPECTED_SPARQL_CORRECT_FAILURES_COUNT)"; result=1; \
|
||||
fi; \
|
||||
fi; \
|
||||
set -e; exit $$result
|
||||
459
lib-src/redland/rasqal/tests/sparql/survey/Makefile.in
Normal file
459
lib-src/redland/rasqal/tests/sparql/survey/Makefile.in
Normal file
@@ -0,0 +1,459 @@
|
||||
# Makefile.in generated by automake 1.10.2 from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
||||
# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
# -*- Mode: Makefile -*-
|
||||
#
|
||||
# Makefile.am - automake file for Rasqal SPARQL tests
|
||||
#
|
||||
# Copyright (C) 2005-2008, David Beckett http://www.dajobe.org/
|
||||
# Copyright (C) 2005-2005, University of Bristol, UK http://www.bristol.ac.uk/
|
||||
#
|
||||
# This package is Free Software and part of Redland http://librdf.org/
|
||||
#
|
||||
# It is licensed under the following three licenses as alternatives:
|
||||
# 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version
|
||||
# 2. GNU General Public License (GPL) V2 or any newer version
|
||||
# 3. Apache License, V2.0 or any newer version
|
||||
#
|
||||
# You may not use this file except in compliance with at least one of
|
||||
# the above three licenses.
|
||||
#
|
||||
# See LICENSE.html or LICENSE.txt at the top of this package for the
|
||||
# complete terms and further detail along with the license texts for
|
||||
# the licenses in COPYING.LIB, COPYING and LICENSE-2.0.txt respectively.
|
||||
#
|
||||
VPATH = @srcdir@
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||
install_sh_DATA = $(install_sh) -c -m 644
|
||||
install_sh_PROGRAM = $(install_sh) -c
|
||||
install_sh_SCRIPT = $(install_sh) -c
|
||||
INSTALL_HEADER = $(INSTALL_DATA)
|
||||
transform = $(program_transform_name)
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_triplet = @build@
|
||||
host_triplet = @host@
|
||||
subdir = tests/sparql/survey
|
||||
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
|
||||
CONFIG_HEADER = $(top_builddir)/src/rasqal_config.h
|
||||
CONFIG_CLEAN_FILES =
|
||||
SOURCES =
|
||||
DIST_SOURCES =
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
ACLOCAL = @ACLOCAL@
|
||||
AMTAR = @AMTAR@
|
||||
AR = @AR@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AWK = @AWK@
|
||||
CC = @CC@
|
||||
CCDEPMODE = @CCDEPMODE@
|
||||
CFLAGS = @CFLAGS@
|
||||
CPP = @CPP@
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
CXXCPP = @CXXCPP@
|
||||
CYGPATH_W = @CYGPATH_W@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
DSYMUTIL = @DSYMUTIL@
|
||||
ECHO = @ECHO@
|
||||
ECHO_C = @ECHO_C@
|
||||
ECHO_N = @ECHO_N@
|
||||
ECHO_T = @ECHO_T@
|
||||
EGREP = @EGREP@
|
||||
EXEEXT = @EXEEXT@
|
||||
GREP = @GREP@
|
||||
GTKDOC_CHECK = @GTKDOC_CHECK@
|
||||
HTML_DIR = @HTML_DIR@
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LEX = @LEX@
|
||||
LEXLIB = @LEXLIB@
|
||||
LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBS = @LIBS@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LN_S = @LN_S@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
MAINT = @MAINT@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
MEM = @MEM@
|
||||
MEM_LIBS = @MEM_LIBS@
|
||||
MKDIR_P = @MKDIR_P@
|
||||
NMEDIT = @NMEDIT@
|
||||
OBJEXT = @OBJEXT@
|
||||
PACKAGE = @PACKAGE@
|
||||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||
PACKAGE_NAME = @PACKAGE_NAME@
|
||||
PACKAGE_STRING = @PACKAGE_STRING@
|
||||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PCRE_CONFIG = @PCRE_CONFIG@
|
||||
PERL = @PERL@
|
||||
PKGCONFIG_CFLAGS = @PKGCONFIG_CFLAGS@
|
||||
PKGCONFIG_LIBS = @PKGCONFIG_LIBS@
|
||||
PKGCONFIG_REQUIRES = @PKGCONFIG_REQUIRES@
|
||||
PKG_CONFIG = @PKG_CONFIG@
|
||||
RANLIB = @RANLIB@
|
||||
RAPPER_PATH = @RAPPER_PATH@
|
||||
RAPTOR_CONFIG = @RAPTOR_CONFIG@
|
||||
RAPTOR_MIN_VERSION = @RAPTOR_MIN_VERSION@
|
||||
RASQAL_EXTERNAL_LIBS = @RASQAL_EXTERNAL_LIBS@
|
||||
RASQAL_INTERNAL_CPPFLAGS = @RASQAL_INTERNAL_CPPFLAGS@
|
||||
RASQAL_INTERNAL_LIBS = @RASQAL_INTERNAL_LIBS@
|
||||
RASQAL_LIBTOOLLIBS = @RASQAL_LIBTOOLLIBS@
|
||||
RASQAL_LIBTOOL_VERSION = @RASQAL_LIBTOOL_VERSION@
|
||||
RASQAL_VERSION_DECIMAL = @RASQAL_VERSION_DECIMAL@
|
||||
REDLAND_CONFIG = @REDLAND_CONFIG@
|
||||
REDLAND_MIN_VERSION = @REDLAND_MIN_VERSION@
|
||||
SED = @SED@
|
||||
SET_MAKE = @SET_MAKE@
|
||||
SHELL = @SHELL@
|
||||
STANDARD_CFLAGS = @STANDARD_CFLAGS@
|
||||
STRIP = @STRIP@
|
||||
TAR = @TAR@
|
||||
VERSION = @VERSION@
|
||||
XML_CONFIG = @XML_CONFIG@
|
||||
YACC = @YACC@
|
||||
YFLAGS = @YFLAGS@
|
||||
abs_builddir = @abs_builddir@
|
||||
abs_srcdir = @abs_srcdir@
|
||||
abs_top_builddir = @abs_top_builddir@
|
||||
abs_top_srcdir = @abs_top_srcdir@
|
||||
ac_ct_CC = @ac_ct_CC@
|
||||
am__include = @am__include@
|
||||
am__leading_dot = @am__leading_dot@
|
||||
am__quote = @am__quote@
|
||||
am__tar = @am__tar@
|
||||
am__untar = @am__untar@
|
||||
bindir = @bindir@
|
||||
build = @build@
|
||||
build_alias = @build_alias@
|
||||
build_cpu = @build_cpu@
|
||||
build_os = @build_os@
|
||||
build_vendor = @build_vendor@
|
||||
builddir = @builddir@
|
||||
datadir = @datadir@
|
||||
datarootdir = @datarootdir@
|
||||
docdir = @docdir@
|
||||
dvidir = @dvidir@
|
||||
exec_prefix = @exec_prefix@
|
||||
host = @host@
|
||||
host_alias = @host_alias@
|
||||
host_cpu = @host_cpu@
|
||||
host_os = @host_os@
|
||||
host_vendor = @host_vendor@
|
||||
htmldir = @htmldir@
|
||||
includedir = @includedir@
|
||||
infodir = @infodir@
|
||||
install_sh = @install_sh@
|
||||
libdir = @libdir@
|
||||
libexecdir = @libexecdir@
|
||||
localedir = @localedir@
|
||||
localstatedir = @localstatedir@
|
||||
mandir = @mandir@
|
||||
mkdir_p = @mkdir_p@
|
||||
oldincludedir = @oldincludedir@
|
||||
pdfdir = @pdfdir@
|
||||
prefix = @prefix@
|
||||
program_transform_name = @program_transform_name@
|
||||
psdir = @psdir@
|
||||
sbindir = @sbindir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
srcdir = @srcdir@
|
||||
sysconfdir = @sysconfdir@
|
||||
target_alias = @target_alias@
|
||||
top_build_prefix = @top_build_prefix@
|
||||
top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
with_raptor = @with_raptor@
|
||||
with_redland = @with_redland@
|
||||
SPARQL_MANIFEST_FILES = manifest.ttl
|
||||
SPARQL_MODEL_FILES = \
|
||||
survey-sample.ttl
|
||||
|
||||
SPARQL_TEST_FILES = \
|
||||
query-survey-1.rq query-survey-2.rq query-survey-3.rq \
|
||||
query-survey-8.rq query-survey-9.rq query-survey-10.rq \
|
||||
query-survey-11.rq query-survey-12.rq query-survey-13.rq
|
||||
|
||||
SPARQL_RESULT_FILES = \
|
||||
result-survey-1.ttl result-survey-2.ttl result-survey-3.ttl \
|
||||
result-survey-8.ttl result-survey-9.ttl result-survey-10.ttl \
|
||||
result-survey-11.ttl result-survey-12.ttl result-survey-13.ttl
|
||||
|
||||
|
||||
# Test failures
|
||||
# survey-3
|
||||
# UNION
|
||||
EXPECTED_SPARQL_CORRECT_FAILURES = \
|
||||
survey-3
|
||||
|
||||
EXPECTED_SPARQL_CORRECT_FAILURES_COUNT = 1
|
||||
EXTRA_DIST = \
|
||||
$(SPARQL_MANIFEST_FILES) \
|
||||
$(SPARQL_MODEL_FILES) \
|
||||
$(SPARQL_TEST_FILES) \
|
||||
$(SPARQL_RESULT_FILES)
|
||||
|
||||
all: all-am
|
||||
|
||||
.SUFFIXES:
|
||||
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
|
||||
&& { if test -f $@; then exit 0; else break; fi; }; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/sparql/survey/Makefile'; \
|
||||
cd $(top_srcdir) && \
|
||||
$(AUTOMAKE) --gnu tests/sparql/survey/Makefile
|
||||
.PRECIOUS: Makefile
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
@case '$?' in \
|
||||
*config.status*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
|
||||
*) \
|
||||
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
|
||||
esac;
|
||||
|
||||
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
|
||||
$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
|
||||
mostlyclean-libtool:
|
||||
-rm -f *.lo
|
||||
|
||||
clean-libtool:
|
||||
-rm -rf .libs _libs
|
||||
tags: TAGS
|
||||
TAGS:
|
||||
|
||||
ctags: CTAGS
|
||||
CTAGS:
|
||||
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
list='$(DISTFILES)'; \
|
||||
dist_files=`for file in $$list; do echo $$file; done | \
|
||||
sed -e "s|^$$srcdirstrip/||;t" \
|
||||
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
|
||||
case $$dist_files in \
|
||||
*/*) $(MKDIR_P) `echo "$$dist_files" | \
|
||||
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
|
||||
sort -u` ;; \
|
||||
esac; \
|
||||
for file in $$dist_files; do \
|
||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
if test -d $$d/$$file; then \
|
||||
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
|
||||
fi; \
|
||||
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
|
||||
else \
|
||||
test -f $(distdir)/$$file \
|
||||
|| cp -p $$d/$$file $(distdir)/$$file \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
check-am: all-am
|
||||
$(MAKE) $(AM_MAKEFLAGS) check-local
|
||||
check: check-am
|
||||
all-am: Makefile
|
||||
installdirs:
|
||||
install: install-am
|
||||
install-exec: install-exec-am
|
||||
install-data: install-data-am
|
||||
uninstall: uninstall-am
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
|
||||
installcheck: installcheck-am
|
||||
install-strip:
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
`test -z '$(STRIP)' || \
|
||||
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
|
||||
distclean-generic:
|
||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||
|
||||
maintainer-clean-generic:
|
||||
@echo "This command is intended for maintainers to use"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
clean: clean-am
|
||||
|
||||
clean-am: clean-generic clean-libtool mostlyclean-am
|
||||
|
||||
distclean: distclean-am
|
||||
-rm -f Makefile
|
||||
distclean-am: clean-am distclean-generic
|
||||
|
||||
dvi: dvi-am
|
||||
|
||||
dvi-am:
|
||||
|
||||
html: html-am
|
||||
|
||||
info: info-am
|
||||
|
||||
info-am:
|
||||
|
||||
install-data-am:
|
||||
|
||||
install-dvi: install-dvi-am
|
||||
|
||||
install-exec-am:
|
||||
|
||||
install-html: install-html-am
|
||||
|
||||
install-info: install-info-am
|
||||
|
||||
install-man:
|
||||
|
||||
install-pdf: install-pdf-am
|
||||
|
||||
install-ps: install-ps-am
|
||||
|
||||
installcheck-am:
|
||||
|
||||
maintainer-clean: maintainer-clean-am
|
||||
-rm -f Makefile
|
||||
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||
|
||||
mostlyclean: mostlyclean-am
|
||||
|
||||
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
|
||||
|
||||
pdf: pdf-am
|
||||
|
||||
pdf-am:
|
||||
|
||||
ps: ps-am
|
||||
|
||||
ps-am:
|
||||
|
||||
uninstall-am:
|
||||
|
||||
.MAKE: install-am install-strip
|
||||
|
||||
.PHONY: all all-am check check-am check-local clean clean-generic \
|
||||
clean-libtool distclean distclean-generic distclean-libtool \
|
||||
distdir dvi dvi-am html html-am info info-am install \
|
||||
install-am install-data install-data-am install-dvi \
|
||||
install-dvi-am install-exec install-exec-am install-html \
|
||||
install-html-am install-info install-info-am install-man \
|
||||
install-pdf install-pdf-am install-ps install-ps-am \
|
||||
install-strip installcheck installcheck-am installdirs \
|
||||
maintainer-clean maintainer-clean-generic mostlyclean \
|
||||
mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
|
||||
uninstall uninstall-am
|
||||
|
||||
|
||||
build-roqet:
|
||||
@(cd $(top_builddir)/utils ; $(MAKE) roqet)
|
||||
|
||||
build-sparql-lexer-test:
|
||||
@(cd $(top_builddir)/src ; $(MAKE) sparql_lexer_test)
|
||||
|
||||
build-sparql-parser-test:
|
||||
@(cd $(top_builddir)/src ; $(MAKE) sparql_parser_test)
|
||||
|
||||
check-local: check-sparql-lexer check-sparql-parser \
|
||||
check-sparql-correct
|
||||
|
||||
check-sparql-lexer: build-sparql-lexer-test
|
||||
@set +e; result=0; \
|
||||
$(ECHO) "Testing legal SPARQL lexing"; \
|
||||
for test in $(SPARQL_TEST_FILES); do \
|
||||
$(ECHO) $(ECHO_N) "Checking $$test $(ECHO_C)"; \
|
||||
$(top_builddir)/src/sparql_lexer_test $(srcdir)/$$test >/dev/null; \
|
||||
status=$$?; \
|
||||
if test $$status != 0 -a $$status != 2 ; then \
|
||||
$(ECHO) FAILED returned status $$status; result=1; \
|
||||
else \
|
||||
$(ECHO) ok; \
|
||||
fi; \
|
||||
done; \
|
||||
set -e; exit $$result
|
||||
|
||||
check-sparql-parser: build-sparql-parser-test
|
||||
@set +e; result=0; \
|
||||
$(ECHO) "Testing legal SPARQL parsing"; \
|
||||
for test in $(SPARQL_TEST_FILES); do \
|
||||
$(ECHO) $(ECHO_N) "Checking $$test $(ECHO_C)"; \
|
||||
$(top_builddir)/src/sparql_parser_test $(srcdir)/$$test >/dev/null; \
|
||||
status=$$?; \
|
||||
if test $$status != 0 -a $$status != 2 ; then \
|
||||
$(ECHO) FAILED returned status $$status; result=1; \
|
||||
fails="$$fails $$test"; \
|
||||
else \
|
||||
$(ECHO) ok; \
|
||||
fi; \
|
||||
done; \
|
||||
set -e; exit $$result
|
||||
|
||||
check-sparql-correct: build-roqet $(srcdir)/../check-sparql
|
||||
@set +e; \
|
||||
$(ECHO) "Testing SPARQL correct"; \
|
||||
PATH=$(top_builddir)/utils:$(top_builddir)@RAPPER_PATH@:$$PATH \
|
||||
$(PERL) $(srcdir)/../check-sparql -s $(srcdir); \
|
||||
result=$$?; \
|
||||
if test $$result != 0 ; then \
|
||||
echo "Expecting test failures: $(EXPECTED_SPARQL_CORRECT_FAILURES)"; \
|
||||
if test $$result = $(EXPECTED_SPARQL_CORRECT_FAILURES_COUNT) ; then \
|
||||
echo "OK: Ignoring $$result expected test failures"; result=0; \
|
||||
else \
|
||||
echo "FAILED: $$result failures does not match expected $(EXPECTED_SPARQL_CORRECT_FAILURES_COUNT)"; result=1; \
|
||||
fi; \
|
||||
fi; \
|
||||
set -e; exit $$result
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
||||
123
lib-src/redland/rasqal/tests/sparql/survey/manifest.ttl
Normal file
123
lib-src/redland/rasqal/tests/sparql/survey/manifest.ttl
Normal file
@@ -0,0 +1,123 @@
|
||||
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
||||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
||||
@prefix mf: <http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#> .
|
||||
@prefix qt: <http://www.w3.org/2001/sw/DataAccess/tests/test-query#> .
|
||||
|
||||
<> rdf:type mf:Manifest ;
|
||||
rdfs:comment "Survey test cases" ;
|
||||
rdfs:comment "See http://lists.w3.org/Archives/Public/public-rdf-dawg/2005AprJun/0023.html" ;
|
||||
mf:entries
|
||||
(
|
||||
[ mf:name "survey-1" ;
|
||||
rdfs:label "Survey q1: Path expression" ;
|
||||
rdfs:comment "Return the names of the authors of publication X" ;
|
||||
mf:action
|
||||
[ qt:query <query-survey-1.rq> ;
|
||||
qt:data <survey-sample.ttl> ] ;
|
||||
mf:result <result-survey-1.ttl>
|
||||
]
|
||||
[ mf:name "survey-2" ;
|
||||
rdfs:label "Survey q2: optional path expression";
|
||||
rdfs:comment "Return the name and, if known, the e-mail of the author of publication X" ;
|
||||
mf:action
|
||||
[ qt:query <query-survey-2.rq> ;
|
||||
qt:data <survey-sample.ttl> ] ;
|
||||
mf:result <result-survey-2.ttl>
|
||||
]
|
||||
[ mf:name "survey-3" ;
|
||||
rdfs:label "Survey q3: Union ";
|
||||
rdfs:comment "Return the labels of all topics and (union) the titles of all publications." ;
|
||||
mf:action
|
||||
[ qt:query <query-survey-3.rq> ;
|
||||
qt:data <survey-sample.ttl> ] ;
|
||||
mf:result <result-survey-3.ttl>
|
||||
]
|
||||
# [ mf:name "survey-4" ;
|
||||
# rdfs:label "Survey q4: Difference" ;
|
||||
# rdfs:comment "Return the labels of all topics that are not titles of publications." ;
|
||||
# mf:action
|
||||
# [ qt:query <query-survey-4.rq> ;
|
||||
# qt:data <survey-sample.ttl> ] ;
|
||||
# mf:result <result-survey-4.ttl>
|
||||
# ]
|
||||
# [ mf:name "survey-5" ;
|
||||
# rdfs:label "Survey q5: Quantification" ;
|
||||
# rdfs:comment "Return the persons who are authors of all publications." ;
|
||||
# mf:action
|
||||
# [ qt:query <query-survey-5.rq> ;
|
||||
# qt:data <survey-sample.ttl> ] ;
|
||||
# mf:result <result-survey-5.ttl>
|
||||
# ]
|
||||
# [ mf:name "survey-6" ;
|
||||
# rdfs:label "Survey q6: Aggregation" ;
|
||||
# rdfs:comment "Count the number of authors of a publication." ;
|
||||
# mf:action
|
||||
# [ qt:query <query-survey-6.rq> ;
|
||||
# qt:data <survey-sample.ttl> ] ;
|
||||
# mf:result <result-survey-6.ttl>
|
||||
# ]
|
||||
# [ mf:name "survey-7" ;
|
||||
# rdfs:label "Survey q7: Recursion" ;
|
||||
# rdfs:comment "Return all subtopics of topic "Information Systems", recursively." ;
|
||||
# mf:action
|
||||
# [ qt:query <query-survey-7.rq> ;
|
||||
# qt:data <survey-sample.ttl> ] ;
|
||||
# mf:result <result-survey-7.ttl>
|
||||
# ]
|
||||
[ mf:name "survey-8" ;
|
||||
rdfs:label "Survey q8: Reification" ;
|
||||
rdfs:comment "Return the person who has classified the publication X." ;
|
||||
mf:action
|
||||
[ qt:query <query-survey-8.rq> ;
|
||||
qt:data <survey-sample.ttl> ] ;
|
||||
mf:result <result-survey-8.ttl>
|
||||
]
|
||||
[ mf:name "survey-9" ;
|
||||
rdfs:label "Survey q9: Collections and Containers" ;
|
||||
rdfs:comment "Return the first author of Publication X." ;
|
||||
mf:action
|
||||
[ qt:query <query-survey-9.rq> ;
|
||||
qt:data <survey-sample.ttl> ] ;
|
||||
mf:result <result-survey-9.ttl>
|
||||
]
|
||||
[ mf:name "survey-10" ;
|
||||
rdfs:label "Survey q10: Namespace" ;
|
||||
rdfs:comment "Return all resources whose namespace starts with http://example.org/survey-sample/." ;
|
||||
mf:action
|
||||
[ qt:query <query-survey-10.rq> ;
|
||||
qt:data <survey-sample.ttl> ] ;
|
||||
mf:result <result-survey-10.ttl>
|
||||
]
|
||||
[ mf:name "survey-11" ;
|
||||
rdfs:label "Survey q11: Language" ;
|
||||
rdfs:comment "Return the German label of the topic whose English label is 'Database Management'." ;
|
||||
mf:action
|
||||
[ qt:query <query-survey-11.rq> ;
|
||||
qt:data <survey-sample.ttl> ] ;
|
||||
mf:result <result-survey-11.ttl>
|
||||
]
|
||||
[ mf:name "survey-12" ;
|
||||
rdfs:label "Survey q12: Lexical space" ;
|
||||
rdfs:comment "Return all publications where the page number is the lexical value '08'." ;
|
||||
mf:action
|
||||
[ qt:query <query-survey-12.rq> ;
|
||||
qt:data <survey-sample.ttl> ] ;
|
||||
mf:result <result-survey-12.ttl>
|
||||
]
|
||||
[ mf:name "survey-13" ;
|
||||
rdfs:label "Survey q13: Value space" ;
|
||||
rdfs:comment "Return all publications where the page number is the integer value 8." ;
|
||||
mf:action
|
||||
[ qt:query <query-survey-13.rq> ;
|
||||
qt:data <survey-sample.ttl> ] ;
|
||||
mf:result <result-survey-13.ttl>
|
||||
]
|
||||
# [ mf:name "survey-14" ;
|
||||
# rdfs:label "Survey q14: Entailment" ;
|
||||
# rdfs:comment "Return all instances of that are members of the class Publication." ;
|
||||
# mf:action
|
||||
# [ qt:query <query-survey-14.rq> ;
|
||||
# qt:data <survey-sample.ttl> ] ;
|
||||
# mf:result <result-survey-14.ttl>
|
||||
# ]
|
||||
).
|
||||
@@ -0,0 +1,5 @@
|
||||
prefix ex: <http://example.org/survey-sample/ontology/>
|
||||
SELECT ?n
|
||||
WHERE
|
||||
{ ?x ex:author [ ?li [ ex:name ?n] ].
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
select DISTINCT ?R where
|
||||
{ ?R ?x ?y.
|
||||
FILTER ( regex(str(?R), "http://example.org/") )
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
SELECT ?de
|
||||
WHERE
|
||||
{
|
||||
[ rdfs:label ?de, "Database Management"@en ].
|
||||
FILTER ( lang(?de) = "de" )
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
prefix ex: <http://example.org/survey-sample/ontology/>
|
||||
SELECT ?PUB WHERE {
|
||||
?PUB ex:pages "08"
|
||||
}
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
prefix ex: <http://example.org/survey-sample/ontology/>
|
||||
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
|
||||
SELECT ?PUB WHERE {
|
||||
?PUB ex:pages ?n.
|
||||
FILTER ( xsd:integer(?n) = 8 )
|
||||
}
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
prefix ex: <http://example.org/survey-sample/ontology/>
|
||||
SELECT ?n ?addr
|
||||
WHERE
|
||||
{ ?y ex:author [ ?li ?who ].
|
||||
?who ex:name ?n.
|
||||
OPTIONAL { ?who ex:email ?addr }
|
||||
}
|
||||
|
||||
10
lib-src/redland/rasqal/tests/sparql/survey/query-survey-3.rq
Normal file
10
lib-src/redland/rasqal/tests/sparql/survey/query-survey-3.rq
Normal file
@@ -0,0 +1,10 @@
|
||||
prefix ex: <http://example.org/survey-sample/ontology/>
|
||||
prefix acm: <http://daml.umbc.edu/ontologies/topic-ont#>
|
||||
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
|
||||
SELECT ?title
|
||||
WHERE
|
||||
{ { [] a acm:Topic; rdfs:label ?title }
|
||||
UNION
|
||||
{ [] ex:title ?title }}
|
||||
|
||||
14
lib-src/redland/rasqal/tests/sparql/survey/query-survey-8.rq
Normal file
14
lib-src/redland/rasqal/tests/sparql/survey/query-survey-8.rq
Normal file
@@ -0,0 +1,14 @@
|
||||
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||
prefix ex: <http://example.org/survey-sample/ontology/>
|
||||
prefix acm: <http://daml.umbc.edu/ontologies/topic-ont#>
|
||||
prefix dc: <http://purl.org/dc/elements/1.1/>
|
||||
|
||||
SELECT ?who WHERE
|
||||
{
|
||||
[ rdf:subject ?work;
|
||||
rdf:predicate ex:isAbout;
|
||||
rdf:object ?topic
|
||||
] dc:creator ?who
|
||||
}
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||
prefix ex: <http://example.org/survey-sample/ontology/>
|
||||
SELECT ?n WHERE
|
||||
{ ?y ex:author [ rdf:_1 [ ex:name ?n] ].
|
||||
}
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
||||
@prefix rs: <http://www.w3.org/2001/sw/DataAccess/tests/result-set#> .
|
||||
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
||||
|
||||
[] rdf:type rs:ResultSet ;
|
||||
rs:resultVariable "n" ;
|
||||
rs:solution
|
||||
[ rs:binding [ rs:value "John" ;
|
||||
rs:variable "n"
|
||||
]
|
||||
] ;
|
||||
rs:solution
|
||||
[ rs:binding [ rs:value "Bob" ;
|
||||
rs:variable "n"
|
||||
]
|
||||
] ;
|
||||
rs:solution
|
||||
[ rs:binding [ rs:value "Mary" ;
|
||||
rs:variable "n"
|
||||
]
|
||||
] ;
|
||||
rs:solution
|
||||
[ rs:binding [ rs:value "Willy" ;
|
||||
rs:variable "n"
|
||||
]
|
||||
] .
|
||||
117
lib-src/redland/rasqal/tests/sparql/survey/result-survey-10.ttl
Normal file
117
lib-src/redland/rasqal/tests/sparql/survey/result-survey-10.ttl
Normal file
@@ -0,0 +1,117 @@
|
||||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
||||
@prefix rs: <http://www.w3.org/2001/sw/DataAccess/tests/result-set#> .
|
||||
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
||||
@prefix ex: <http://example.org/survey-sample/ontology/> .
|
||||
|
||||
[] rdf:type rs:ResultSet ;
|
||||
rs:resultVariable "R" ;
|
||||
rs:solution
|
||||
[ rs:binding [ rs:value ex:Publication ;
|
||||
rs:variable "R"
|
||||
]
|
||||
] ;
|
||||
rs:solution
|
||||
[ rs:binding [ rs:value ex:InProceedings ;
|
||||
rs:variable "R"
|
||||
]
|
||||
] ;
|
||||
rs:solution
|
||||
[ rs:binding [ rs:value ex:Person ;
|
||||
rs:variable "R"
|
||||
]
|
||||
] ;
|
||||
rs:solution
|
||||
[ rs:binding [ rs:value ex:Human ;
|
||||
rs:variable "R"
|
||||
]
|
||||
] ;
|
||||
rs:solution
|
||||
[ rs:binding [ rs:value ex:Topic ;
|
||||
rs:variable "R"
|
||||
]
|
||||
] ;
|
||||
rs:solution
|
||||
[ rs:binding [ rs:value ex:author ;
|
||||
rs:variable "R"
|
||||
]
|
||||
] ;
|
||||
rs:solution
|
||||
[ rs:binding [ rs:value ex:title ;
|
||||
rs:variable "R"
|
||||
]
|
||||
] ;
|
||||
rs:solution
|
||||
[ rs:binding [ rs:value ex:pages ;
|
||||
rs:variable "R"
|
||||
]
|
||||
] ;
|
||||
rs:solution
|
||||
[ rs:binding [ rs:value ex:year ;
|
||||
rs:variable "R"
|
||||
]
|
||||
] ;
|
||||
rs:solution
|
||||
[ rs:binding [ rs:value ex:isAbout ;
|
||||
rs:variable "R"
|
||||
]
|
||||
] ;
|
||||
rs:solution
|
||||
[ rs:binding [ rs:value ex:name ;
|
||||
rs:variable "R"
|
||||
]
|
||||
] ;
|
||||
rs:solution
|
||||
[ rs:binding [ rs:value ex:email ;
|
||||
rs:variable "R"
|
||||
]
|
||||
] ;
|
||||
rs:solution
|
||||
[ rs:binding [ rs:value <http://example.org/survey-sample/person01> ;
|
||||
rs:variable "R"
|
||||
]
|
||||
] ;
|
||||
rs:solution
|
||||
[ rs:binding [ rs:value <http://example.org/survey-sample/person02> ;
|
||||
rs:variable "R"
|
||||
]
|
||||
] ;
|
||||
rs:solution
|
||||
[ rs:binding [ rs:value <http://example.org/survey-sample/person03> ;
|
||||
rs:variable "R"
|
||||
]
|
||||
] ;
|
||||
rs:solution
|
||||
[ rs:binding [ rs:value <http://example.org/survey-sample/person04> ;
|
||||
rs:variable "R"
|
||||
]
|
||||
] ;
|
||||
rs:solution
|
||||
[ rs:binding [ rs:value <http://example.org/survey-sample/Paper> ;
|
||||
rs:variable "R"
|
||||
]
|
||||
] ;
|
||||
rs:solution
|
||||
[ rs:binding [ rs:value ex:reified_triple ;
|
||||
rs:variable "R"
|
||||
]
|
||||
] ;
|
||||
rs:solution
|
||||
[ rs:binding [ rs:value <http://example.org/ACMTopic/Information_Systems> ;
|
||||
rs:variable "R"
|
||||
]
|
||||
] ;
|
||||
rs:solution
|
||||
[ rs:binding [ rs:value <http://example.org/ACMTopic/Information_Systems/Database_Management> ;
|
||||
rs:variable "R"
|
||||
]
|
||||
] ;
|
||||
rs:solution
|
||||
[ rs:binding [ rs:value <http://example.org/ACMTopic/Information_Systems/Database_Management/Languages> ;
|
||||
rs:variable "R"
|
||||
]
|
||||
] ;
|
||||
rs:solution
|
||||
[ rs:binding [ rs:value <http://example.org/ACMTopic/Information_Systems/Database_Management/Languages/Query_Languages> ;
|
||||
rs:variable "R"
|
||||
]
|
||||
] .
|
||||
@@ -0,0 +1,12 @@
|
||||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
||||
@prefix rs: <http://www.w3.org/2001/sw/DataAccess/tests/result-set#> .
|
||||
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
||||
@prefix ex: <http://example.org/survey-sample/ontology/> .
|
||||
|
||||
[] rdf:type rs:ResultSet ;
|
||||
rs:resultVariable "de" ;
|
||||
rs:solution
|
||||
[ rs:binding [ rs:value "Datenbankmanagement"@de ;
|
||||
rs:variable "de"
|
||||
]
|
||||
] .
|
||||
@@ -0,0 +1,12 @@
|
||||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
||||
@prefix rs: <http://www.w3.org/2001/sw/DataAccess/tests/result-set#> .
|
||||
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
||||
@prefix ex: <http://example.org/survey-sample/ontology/> .
|
||||
|
||||
[] rdf:type rs:ResultSet ;
|
||||
rs:resultVariable "PUB" ;
|
||||
rs:solution
|
||||
[ rs:binding [ rs:value <http://example.org/survey-sample/Paper> ;
|
||||
rs:variable "PUB"
|
||||
]
|
||||
] .
|
||||
@@ -0,0 +1,12 @@
|
||||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
||||
@prefix rs: <http://www.w3.org/2001/sw/DataAccess/tests/result-set#> .
|
||||
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
||||
@prefix ex: <http://example.org/survey-sample/ontology/> .
|
||||
|
||||
[] rdf:type rs:ResultSet ;
|
||||
rs:resultVariable "PUB" ;
|
||||
rs:solution
|
||||
[ rs:binding [ rs:value <http://example.org/survey-sample/Paper> ;
|
||||
rs:variable "PUB"
|
||||
]
|
||||
] .
|
||||
@@ -0,0 +1,30 @@
|
||||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
||||
@prefix rs: <http://www.w3.org/2001/sw/DataAccess/tests/result-set#> .
|
||||
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
||||
|
||||
[] rdf:type rs:ResultSet ;
|
||||
rs:resultVariable "n" ;
|
||||
rs:resultVariable "addr" ;
|
||||
rs:solution
|
||||
[ rs:binding [ rs:value "John" ;
|
||||
rs:variable "n"
|
||||
]
|
||||
] ;
|
||||
rs:solution
|
||||
[ rs:binding [ rs:value "Bob" ;
|
||||
rs:variable "n"
|
||||
]
|
||||
] ;
|
||||
rs:solution
|
||||
[ rs:binding [ rs:value "Mary" ;
|
||||
rs:variable "n"
|
||||
] ;
|
||||
rs:binding [ rs:value "mary@example.org" ;
|
||||
rs:variable "addr"
|
||||
]
|
||||
] ;
|
||||
rs:solution
|
||||
[ rs:binding [ rs:value "Willy" ;
|
||||
rs:variable "n"
|
||||
]
|
||||
] .
|
||||
@@ -0,0 +1,51 @@
|
||||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
||||
@prefix rs: <http://www.w3.org/2001/sw/DataAccess/tests/result-set#> .
|
||||
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
||||
|
||||
[] rdf:type rs:ResultSet ;
|
||||
rs:resultVariable "title" ;
|
||||
rs:solution
|
||||
[ rs:binding [ rs:value "Query Languages"@en ;
|
||||
rs:variable "title"
|
||||
]
|
||||
] ;
|
||||
rs:solution
|
||||
[ rs:binding [ rs:value "Anfragesprachen"@de ;
|
||||
rs:variable "title"
|
||||
]
|
||||
] ;
|
||||
rs:solution
|
||||
[ rs:binding [ rs:value "An Overview of RDF Query Languages" ;
|
||||
rs:variable "title"
|
||||
]
|
||||
] ;
|
||||
rs:solution
|
||||
[ rs:binding [ rs:value "Information Systems"@en ;
|
||||
rs:variable "title"
|
||||
]
|
||||
] ;
|
||||
rs:solution
|
||||
[ rs:binding [ rs:value "Informationsysteme"@de ;
|
||||
rs:variable "title"
|
||||
]
|
||||
] ;
|
||||
rs:solution
|
||||
[ rs:binding [ rs:value "Database Management"@en ;
|
||||
rs:variable "title"
|
||||
]
|
||||
] ;
|
||||
rs:solution
|
||||
[ rs:binding [ rs:value "Datenbankmanagement"@de ;
|
||||
rs:variable "title"
|
||||
]
|
||||
] ;
|
||||
rs:solution
|
||||
[ rs:binding [ rs:value "Languages"@en ;
|
||||
rs:variable "title"
|
||||
]
|
||||
] ;
|
||||
rs:solution
|
||||
[ rs:binding [ rs:value "Sprachen"@de ;
|
||||
rs:variable "title"
|
||||
]
|
||||
] .
|
||||
@@ -0,0 +1,11 @@
|
||||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
||||
@prefix rs: <http://www.w3.org/2001/sw/DataAccess/tests/result-set#> .
|
||||
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
||||
|
||||
[] rdf:type rs:ResultSet ;
|
||||
rs:resultVariable "who" ;
|
||||
rs:solution
|
||||
[ rs:binding [ rs:value <http://example.org/survey-sample/person01>;
|
||||
rs:variable "who"
|
||||
]
|
||||
] .
|
||||
@@ -0,0 +1,11 @@
|
||||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
||||
@prefix rs: <http://www.w3.org/2001/sw/DataAccess/tests/result-set#> .
|
||||
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
||||
|
||||
[] rdf:type rs:ResultSet ;
|
||||
rs:resultVariable "n" ;
|
||||
rs:solution
|
||||
[ rs:binding [ rs:value "John";
|
||||
rs:variable "n"
|
||||
]
|
||||
] .
|
||||
78
lib-src/redland/rasqal/tests/sparql/survey/survey-sample.ttl
Normal file
78
lib-src/redland/rasqal/tests/sparql/survey/survey-sample.ttl
Normal file
@@ -0,0 +1,78 @@
|
||||
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
||||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
||||
@prefix ex: <http://example.org/survey-sample/ontology/> .
|
||||
@prefix : <http://example.org/survey-sample/> .
|
||||
@prefix dc: <http://purl.org/dc/elements/1.1/> .
|
||||
@prefix acm: <http://daml.umbc.edu/ontologies/topic-ont#> .
|
||||
|
||||
:person01 a ex:Person ;
|
||||
ex:name "John" .
|
||||
ex:name a rdf:Property ;
|
||||
rdfs:domain ex:Person ;
|
||||
rdfs:range <http://www.w3.org/2001/XMLSchema#STRING> .
|
||||
:person02 a ex:Person , ex:Human ;
|
||||
ex:name "Bob" .
|
||||
ex:author a rdf:Property ;
|
||||
rdfs:domain ex:Publication ;
|
||||
rdfs:range rdf:Seq .
|
||||
ex:Person a rdfs:Class ;
|
||||
rdfs:subClassOf ex:Human .
|
||||
ex:reified_triple a rdf:Statement ;
|
||||
rdf:subject ex:Paper ;
|
||||
rdf:predicate ex:isAbout ;
|
||||
rdf:object <http://example.org/ACMTopic/Information_Systems/Database_Management/Languages/Query_Languages> ;
|
||||
dc:creator :person01.
|
||||
:person03 ex:email "mary@example.org" ;
|
||||
ex:name "Mary" .
|
||||
ex:year a rdf:Property ;
|
||||
rdfs:domain ex:Publication .
|
||||
|
||||
:Paper a ex:InProceedings ;
|
||||
ex:isAbout <http://example.org/ACMTopic/Information_Systems/Database_Management/Languages/Query_Languages> ;
|
||||
ex:year "2004" ;
|
||||
ex:pages "08" ;
|
||||
ex:title "An Overview of RDF Query Languages" ;
|
||||
ex:author [ a rdf:Seq ;
|
||||
rdf:_1 :person01 ;
|
||||
rdf:_2 :person02 ;
|
||||
rdf:_3 :person03 ;
|
||||
rdf:_4 :person04
|
||||
] .
|
||||
|
||||
ex:email a rdf:Property ;
|
||||
rdfs:domain ex:Person ;
|
||||
rdfs:range <http://www.w3.org/2001/XMLSchema#STRING> .
|
||||
|
||||
<http://example.org/ACMTopic/Information_Systems> a acm:Topic ;
|
||||
acm:SubTopic <http://example.org/ACMTopic/Information_Systems/Database_Management> ;
|
||||
rdfs:label "Informationsysteme"@de , "Information Systems"@en .
|
||||
|
||||
<http://example.org/ACMTopic/Information_Systems/Database_Management/Languages/Query_Languages> a acm:Topic ;
|
||||
rdfs:label "Anfragesprachen"@de , "Query Languages"@en .
|
||||
|
||||
<http://example.org/ACMTopic/Information_Systems/Database_Management/Languages> acm:SubTopic <http://example.org/ACMTopic/Information_Systems/Database_Management/Languages/Query_Languages> ;
|
||||
a acm:Topic ;
|
||||
rdfs:label "Sprachen"@de , "Languages"@en .
|
||||
ex:title a rdf:Property ;
|
||||
rdfs:domain ex:Publication ;
|
||||
rdfs:range <http://www.w3.org/2001/XMLSchema#STRING> .
|
||||
ex:InProceedings a rdfs:Class ;
|
||||
rdfs:subClassOf ex:Publication .
|
||||
ex:isAbout a rdf:Property ;
|
||||
rdfs:range ex:Topic .
|
||||
|
||||
ex:Topic a rdfs:Class .
|
||||
|
||||
<http://example.org/ACMTopic/Information_Systems/Database_Management> a acm:Topic ;
|
||||
acm:SubTopic <http://example.org/ACMTopic/Information_Systems/Database_Management/Languages> ;
|
||||
rdfs:label "Datenbankmanagement"@de , "Database Management"@en .
|
||||
:person04 a ex:Human ;
|
||||
ex:name "Willy" .
|
||||
|
||||
ex:Human a rdfs:Class ;
|
||||
rdfs:subClassOf ex:Person .
|
||||
|
||||
ex:Publication a rdfs:Class .
|
||||
ex:pages a rdf:Property ;
|
||||
rdfs:domain ex:Publication ;
|
||||
rdfs:range <http://www.w3.org/2001/XMLSchema#INTEGER> .
|
||||
Reference in New Issue
Block a user