diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 05:40:05 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 05:40:05 +0000 |
commit | 4038ab95a094b363f1748f3dcb51511a1217475d (patch) | |
tree | 7f393d66a783f91ddd263c78d681e485cf4f45ca /tests/mkr | |
parent | Initial commit. (diff) | |
download | raptor2-4038ab95a094b363f1748f3dcb51511a1217475d.tar.xz raptor2-4038ab95a094b363f1748f3dcb51511a1217475d.zip |
Adding upstream version 2.0.16.upstream/2.0.16upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | tests/mkr/Makefile.am | 111 | ||||
-rw-r--r-- | tests/mkr/Makefile.in | 587 | ||||
-rw-r--r-- | tests/mkr/README.txt | 12 | ||||
-rw-r--r-- | tests/mkr/rdf-schema.mkr | 155 | ||||
-rw-r--r-- | tests/mkr/rdf-schema.ttl | 154 | ||||
-rw-r--r-- | tests/mkr/rdfq-results.mkr | 13 | ||||
-rw-r--r-- | tests/mkr/rdfq-results.ttl | 39 | ||||
-rw-r--r-- | tests/mkr/rdfs-namespace.mkr | 185 | ||||
-rw-r--r-- | tests/mkr/rdfs-namespace.ttl | 160 | ||||
-rw-r--r-- | tests/mkr/test-07.mkr | 7 | ||||
-rw-r--r-- | tests/mkr/test-07.ttl | 3 | ||||
-rw-r--r-- | tests/mkr/test-08.mkr | 7 | ||||
-rw-r--r-- | tests/mkr/test-08.ttl | 3 | ||||
-rw-r--r-- | tests/mkr/test-16a.mkr | 7 | ||||
-rw-r--r-- | tests/mkr/test-16a.ttl | 11 | ||||
-rw-r--r-- | tests/mkr/test-28.mkr | 6 | ||||
-rw-r--r-- | tests/mkr/test-28.ttl | 22 | ||||
-rw-r--r-- | tests/mkr/test-31.mkr | 12 | ||||
-rw-r--r-- | tests/mkr/test-31.ttl | 10 | ||||
-rw-r--r-- | tests/mkr/test-32.mkr | 7 | ||||
-rw-r--r-- | tests/mkr/test-32.ttl | 5 | ||||
-rw-r--r-- | tests/mkr/test-34.mkr | 7 | ||||
-rw-r--r-- | tests/mkr/test-34.ttl | 4 |
23 files changed, 1527 insertions, 0 deletions
diff --git a/tests/mkr/Makefile.am b/tests/mkr/Makefile.am new file mode 100644 index 0000000..4d5aea2 --- /dev/null +++ b/tests/mkr/Makefile.am @@ -0,0 +1,111 @@ +# -*- Mode: Makefile -*- +# +# Makefile.am - automake file for Raptor MKR tests +# +# Copyright (C) 2014, Richard H. McCullough +# +# 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. +# +# + +RDFXML_DIR = ../rdfxml +NTRIPLES_DIR = ../ntriples + + +TEST_SERIALIZE_FILES= \ +rdf-schema.ttl \ +rdfs-namespace.ttl \ +rdfq-results.ttl \ +test-07.ttl test-08.ttl test-16a.ttl \ +test-28.ttl test-31.ttl test-32.ttl test-34.ttl + +TEST_SERIALIZE_OUT_FILES= \ +rdf-schema.mkr \ +rdfs-namespace.mkr \ +rdfq-results.mkr \ +test-07.mkr test-08.mkr test-16a.mkr \ +test-28.mkr test-31.mkr test-32.mkr test-34.mkr + +# Used to make N-triples output consistent +BASE_URI=http://www.w3.org/2001/sw/DataAccess/df1/tests/ +# for rdf-schema.ttl +RDF_NS_URI=http://www.w3.org/1999/02/22-rdf-syntax-ns +# for rdfs-namespace.ttl +RDFS_NS_URI=http://www.w3.org/2000/01/rdf-schema + +ALL_TEST_FILES= README.txt \ + $(TEST_SERIALIZE_FILES) \ + $(TEST_SERIALIZE_OUT_FILES) + +EXTRA_DIST = $(ALL_TEST_FILES) + +RAPPER = $(top_builddir)/utils/rapper +RDFDIFF = $(top_builddir)/utils/rdfdiff + +build-rapper: + @(cd $(top_builddir)/utils ; $(MAKE) rapper$(EXEEXT)) + + +check-local: \ +check-mkr-serialize-syntax + + +if MAINTAINER_MODE +check_mkr_serialize_deps = $(TEST_FILES) +endif + + +if MAINTAINER_MODE +check_mkr_serialize_syntax_deps = $(TEST_SERIALIZE_FILES) +endif + +check-mkr-serialize-syntax: build-rapper $(check_mkr_serialize_syntax_deps) + @set +e; result=0; \ + $(RECHO) "Testing mkr exact serialization output"; \ + for test in $(TEST_SERIALIZE_FILES); do \ + name=`basename $$test .ttl` ; \ + if test $$name = rdf-schema; then \ + baseuri=$(RDF_NS_URI); \ + elif test $$name = rdfs-namespace; then \ + baseuri=$(RDFS_NS_URI); \ + else \ + baseuri=$(BASE_URI)$$test; \ + fi; \ + $(RECHO) $(RECHO_N) "Checking $$test $(RECHO_C)"; \ + $(RAPPER) -q -i turtle -o mkr $(srcdir)/$$test $$baseuri > $$name.out 2> $$name.err; \ + cmp -s $$name.out $(srcdir)/$$name.mkr; \ + status=$$?; \ + if test $$status = 0; then \ + $(RECHO) "ok"; \ + else \ + $(RECHO) "FAILED"; result=1; \ + $(RECHO) $(RAPPER) -q -i turtle -o mkr $(srcdir)/$$test $$baseuri '>' $$name.out; \ + cat $$name.err; \ + diff -a -u $$name.out $(srcdir)/$$name.mkr; \ + fi; \ + rm -f $$name.out $$name.err; \ + done; \ + set -e; exit $$result + + + +if MAINTAINER_MODE +zip: tests.zip + +tests.zip: $(ALL_TEST_FILES) + rm -f $@ + zip $@ $(ALL_TEST_FILES) + +endif diff --git a/tests/mkr/Makefile.in b/tests/mkr/Makefile.in new file mode 100644 index 0000000..eef040d --- /dev/null +++ b/tests/mkr/Makefile.in @@ -0,0 +1,587 @@ +# Makefile.in generated by automake 1.16.5 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994-2021 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 Raptor MKR tests +# +# Copyright (C) 2014, Richard H. McCullough +# +# 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@ +am__is_gnu_make = { \ + if test -z '$(MAKELEVEL)'; then \ + false; \ + elif test -n '$(MAKE_HOST)'; then \ + true; \ + elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ + true; \ + else \ + false; \ + fi; \ +} +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@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/mkr +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/build/gtk-doc.m4 \ + $(top_srcdir)/build/libtool.m4 \ + $(top_srcdir)/build/ltoptions.m4 \ + $(top_srcdir)/build/ltsugar.m4 \ + $(top_srcdir)/build/ltversion.m4 \ + $(top_srcdir)/build/lt~obsolete.m4 $(top_srcdir)/build/pkg.m4 \ + $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/src/raptor_config.h +CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = +SOURCES = +DIST_SOURCES = +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) +am__DIST_COMMON = $(srcdir)/Makefile.in +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +AR = @AR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +BISON = @BISON@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPPFLAGS = @CPPFLAGS@ +CSCOPE = @CSCOPE@ +CTAGS = @CTAGS@ +CURL_CONFIG = @CURL_CONFIG@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +ETAGS = @ETAGS@ +EXEEXT = @EXEEXT@ +FGREP = @FGREP@ +FILECMD = @FILECMD@ +GREP = @GREP@ +GTKDOC_CHECK = @GTKDOC_CHECK@ +GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@ +GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@ +GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@ +GTKDOC_MKPDF = @GTKDOC_MKPDF@ +GTKDOC_REBASE = @GTKDOC_REBASE@ +HTML_DIR = @HTML_DIR@ +ICU_CFLAGS = @ICU_CFLAGS@ +ICU_LIBS = @ICU_LIBS@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +JING = @JING@ +LD = @LD@ +LDFLAGS = @LDFLAGS@ +LEX = @LEX@ +LEXLIB = @LEXLIB@ +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ +LIBCURL_CFLAGS = @LIBCURL_CFLAGS@ +LIBCURL_LIBS = @LIBCURL_LIBS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LIBXML_CFLAGS = @LIBXML_CFLAGS@ +LIBXML_LIBS = @LIBXML_LIBS@ +LIPO = @LIPO@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ +MAINT = @MAINT@ +MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ +MEM = @MEM@ +MEM_LIBS = @MEM_LIBS@ +MKDIR_P = @MKDIR_P@ +NM = @NM@ +NMEDIT = @NMEDIT@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PERL = @PERL@ +PKG_CONFIG = @PKG_CONFIG@ +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ +PKG_CONFIG_REQUIRES = @PKG_CONFIG_REQUIRES@ +RANLIB = @RANLIB@ +RAPTOR_LDFLAGS = @RAPTOR_LDFLAGS@ +RAPTOR_LIBTOOLLIBS = @RAPTOR_LIBTOOLLIBS@ +RAPTOR_LIBTOOL_VERSION = @RAPTOR_LIBTOOL_VERSION@ +RAPTOR_PARSERS = @RAPTOR_PARSERS@ +RAPTOR_SERIALIZERS = @RAPTOR_SERIALIZERS@ +RAPTOR_VERSION = @RAPTOR_VERSION@ +RAPTOR_VERSION_DECIMAL = @RAPTOR_VERSION_DECIMAL@ +RAPTOR_VERSION_MAJOR = @RAPTOR_VERSION_MAJOR@ +RAPTOR_VERSION_MINOR = @RAPTOR_VERSION_MINOR@ +RAPTOR_VERSION_RELEASE = @RAPTOR_VERSION_RELEASE@ +RAPTOR_WWW_LIBRARY = @RAPTOR_WWW_LIBRARY@ +RAPTOR_XML_PARSER = @RAPTOR_XML_PARSER@ +RECHO = @RECHO@ +RECHO_C = @RECHO_C@ +RECHO_N = @RECHO_N@ +RPM_RELEASE = @RPM_RELEASE@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +TAR = @TAR@ +VERSION = @VERSION@ +XML_CONFIG = @XML_CONFIG@ +XSLT_CFLAGS = @XSLT_CFLAGS@ +XSLT_CONFIG = @XSLT_CONFIG@ +XSLT_LIBS = @XSLT_LIBS@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ +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@ +runstatedir = @runstatedir@ +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@ +RDFXML_DIR = ../rdfxml +NTRIPLES_DIR = ../ntriples +TEST_SERIALIZE_FILES = \ +rdf-schema.ttl \ +rdfs-namespace.ttl \ +rdfq-results.ttl \ +test-07.ttl test-08.ttl test-16a.ttl \ +test-28.ttl test-31.ttl test-32.ttl test-34.ttl + +TEST_SERIALIZE_OUT_FILES = \ +rdf-schema.mkr \ +rdfs-namespace.mkr \ +rdfq-results.mkr \ +test-07.mkr test-08.mkr test-16a.mkr \ +test-28.mkr test-31.mkr test-32.mkr test-34.mkr + + +# Used to make N-triples output consistent +BASE_URI = http://www.w3.org/2001/sw/DataAccess/df1/tests/ +# for rdf-schema.ttl +RDF_NS_URI = http://www.w3.org/1999/02/22-rdf-syntax-ns +# for rdfs-namespace.ttl +RDFS_NS_URI = http://www.w3.org/2000/01/rdf-schema +ALL_TEST_FILES = README.txt \ + $(TEST_SERIALIZE_FILES) \ + $(TEST_SERIALIZE_OUT_FILES) + +EXTRA_DIST = $(ALL_TEST_FILES) +RAPPER = $(top_builddir)/utils/rapper +RDFDIFF = $(top_builddir)/utils/rdfdiff +@MAINTAINER_MODE_TRUE@check_mkr_serialize_deps = $(TEST_FILES) +@MAINTAINER_MODE_TRUE@check_mkr_serialize_syntax_deps = $(TEST_SERIALIZE_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/mkr/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnu tests/mkr/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__maybe_remake_depfiles)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ + 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 +$(am__aclocal_m4_deps): + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs +tags TAGS: + +ctags CTAGS: + +cscope cscopelist: + +distdir: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) distdir-am + +distdir-am: $(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 "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$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: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_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 + +html-am: + +info: info-am + +info-am: + +install-data-am: + +install-dvi: install-dvi-am + +install-dvi-am: + +install-exec-am: + +install-html: install-html-am + +install-html-am: + +install-info: install-info-am + +install-info-am: + +install-man: + +install-pdf: install-pdf-am + +install-pdf-am: + +install-ps: install-ps-am + +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: check-am install-am install-strip + +.PHONY: all all-am check check-am check-local clean clean-generic \ + clean-libtool cscopelist-am ctags-am 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 tags-am uninstall \ + uninstall-am + +.PRECIOUS: Makefile + + +build-rapper: + @(cd $(top_builddir)/utils ; $(MAKE) rapper$(EXEEXT)) + +check-local: \ +check-mkr-serialize-syntax + +check-mkr-serialize-syntax: build-rapper $(check_mkr_serialize_syntax_deps) + @set +e; result=0; \ + $(RECHO) "Testing mkr exact serialization output"; \ + for test in $(TEST_SERIALIZE_FILES); do \ + name=`basename $$test .ttl` ; \ + if test $$name = rdf-schema; then \ + baseuri=$(RDF_NS_URI); \ + elif test $$name = rdfs-namespace; then \ + baseuri=$(RDFS_NS_URI); \ + else \ + baseuri=$(BASE_URI)$$test; \ + fi; \ + $(RECHO) $(RECHO_N) "Checking $$test $(RECHO_C)"; \ + $(RAPPER) -q -i turtle -o mkr $(srcdir)/$$test $$baseuri > $$name.out 2> $$name.err; \ + cmp -s $$name.out $(srcdir)/$$name.mkr; \ + status=$$?; \ + if test $$status = 0; then \ + $(RECHO) "ok"; \ + else \ + $(RECHO) "FAILED"; result=1; \ + $(RECHO) $(RAPPER) -q -i turtle -o mkr $(srcdir)/$$test $$baseuri '>' $$name.out; \ + cat $$name.err; \ + diff -a -u $$name.out $(srcdir)/$$name.mkr; \ + fi; \ + rm -f $$name.out $$name.err; \ + done; \ + set -e; exit $$result + +@MAINTAINER_MODE_TRUE@zip: tests.zip + +@MAINTAINER_MODE_TRUE@tests.zip: $(ALL_TEST_FILES) +@MAINTAINER_MODE_TRUE@ rm -f $@ +@MAINTAINER_MODE_TRUE@ zip $@ $(ALL_TEST_FILES) + +# 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: diff --git a/tests/mkr/README.txt b/tests/mkr/README.txt new file mode 100644 index 0000000..4607bb9 --- /dev/null +++ b/tests/mkr/README.txt @@ -0,0 +1,12 @@ +These are the tests for the mKR (my Knowledge Representation) Language +that must be passed by conformant systems. See + http://mkrmke.org/parser/ +for the full conformance information. + +The format is a set of exact serialization format tests. + +Tests are a pair of files: + xxx.ttl xxx.mkr +which are the input Turtle file and the expected output mKR file. + +Dick diff --git a/tests/mkr/rdf-schema.mkr b/tests/mkr/rdf-schema.mkr new file mode 100644 index 0000000..901b704 --- /dev/null +++ b/tests/mkr/rdf-schema.mkr @@ -0,0 +1,155 @@ +@base <http://www.w3.org/1999/02/22-rdf-syntax-ns> ; +@prefix rdf: <#> ; +@prefix : <../../2000/01/rdf-schema#> ; + +rdf:Alt has + rdf:type = [:Class], + :label = ["Alt"@en, "Choix"@fr], + :subClassOf = [:Container] ; + +rdf:Bag has + rdf:type = [:Class], + :label = ["Bag"@en, "Ensemble"@fr], + :subClassOf = [:Container] ; + +rdf:Property has + rdf:type = [:Class], + :comment = ["The concept of a property."], + :label = ["Property"@en, "Propriété"@fr], + :subClassOf = [:Resource] ; + +rdf:Seq has + rdf:type = [:Class], + :label = ["Sequence"@en, "Séquence"@fr], + :subClassOf = [:Container] ; + +rdf:Statement has + rdf:type = [:Class], + :comment = ["This represents the set of reified statements."], + :label = ["Déclaration"@fr, "Statement"@en], + :subClassOf = [:Resource] ; + +rdf:object has + rdf:type = [rdf:Property], + :domain = [rdf:Statement], + :label = ["object"@en, "objet"@fr] ; + +rdf:predicate has + rdf:type = [rdf:Property], + :domain = [rdf:Statement], + :label = ["predicate"@en, "prédicat"@fr], + :range = [rdf:Property] ; + +rdf:subject has + rdf:type = [rdf:Property], + :domain = [rdf:Statement], + :label = ["subject"@en, "sujet"@fr], + :range = [:Resource] ; + +rdf:type has + rdf:type = [rdf:Property], + :comment = ["Indicates membership of a class"], + :label = ["type"@en, "type"@fr], + :range = [:Class] ; + +rdf:value has + rdf:type = [rdf:Property], + :label = ["object"@en, "value"@fr] ; + +<../../2000/01/rdf-schema#> has + :seeAlso = [<../../2000/01/rdf-schema-more>] ; + +:Class has + rdf:type = [:Class], + :comment = ["The concept of Class"], + :label = ["Class"@en, "Classe"@fr], + :subClassOf = [:Resource] ; + +:ConstraintProperty has + rdf:type = [:Class], + :comment = ["Properties used to express RDF Schema constraints."], + :label = ["ConstraintProperty"@en, "PropriétéContrainte"@fr], + :subClassOf = [rdf:Property, :ConstraintResource] ; + +:ConstraintResource has + rdf:type = [:Class], + :comment = ["Resources used to express RDF Schema constraints."], + :label = ["ConstraintResource"@en, "RessourceContrainte"@fr], + :subClassOf = [:Resource] ; + +:Container has + rdf:type = [:Class], + :comment = ["This represents the set Containers."], + :label = ["Container"@en, "Enveloppe"@fr], + :subClassOf = [:Resource] ; + +:ContainerMembershipProperty has + rdf:type = [:Class], + :label = ["ContainerMembershipProperty"@en], + :subClassOf = [rdf:Property] ; + +:Literal has + rdf:type = [:Class], + :comment = ["This represents the set of atomic values, eg. textual strings."], + :label = ["Literal"@en, "Littéral"@fr] ; + +:Resource has + rdf:type = [:Class], + :comment = ["The most general class"], + :label = ["Resource"@en, "Ressource"@fr] ; + +:comment has + rdf:type = [rdf:Property], + :comment = ["Use this for descriptions"], + :domain = [:Resource], + :label = ["comment"@en, "commentaire"@fr], + :range = [:Literal] ; + +:domain has + rdf:type = [:ConstraintProperty], + :comment = ["This is how we associate a class with properties that its instances can have"], + :label = ["domain"@en, "domaine"@fr] ; + +:isDefinedBy has + rdf:type = [rdf:Property], + :comment = ["Indicates a resource containing and defining the subject resource."], + :domain = [:Resource], + :label = ["esDéfiniPar"@fr, "isDefinedBy"@en], + :range = [:Resource], + :subPropertyOf = [:seeAlso] ; + +:label has + rdf:type = [rdf:Property], + :comment = ["Provides a human-readable version of a resource name."], + :domain = [:Resource], + :label = ["label"@en, "label"@fr], + :range = [:Literal] ; + +:range has + rdf:type = [:ConstraintProperty], + :comment = ["Properties that can be used in a schema to provide constraints"], + :domain = [rdf:Property], + :label = ["range"@en, "étendue"@fr], + :range = [:Class] ; + +:seeAlso has + rdf:type = [rdf:Property], + :comment = ["Indicates a resource that provides information about the subject resource."], + :domain = [:Resource], + :label = ["seeAlso"@en, "voirAussi"@fr], + :range = [:Resource] ; + +:subClassOf has + rdf:type = [rdf:Property], + :comment = ["Indicates membership of a class"], + :domain = [:Class], + :label = ["sousClasseDe"@fr, "subClassOf"@en], + :range = [:Class] ; + +:subPropertyOf has + rdf:type = [rdf:Property], + :comment = ["Indicates specialization of properties"], + :domain = [rdf:Property], + :label = ["sousPropriétéDe"@fr, "subPropertyOf"@en], + :range = [rdf:Property] ; + diff --git a/tests/mkr/rdf-schema.ttl b/tests/mkr/rdf-schema.ttl new file mode 100644 index 0000000..0f1fd89 --- /dev/null +++ b/tests/mkr/rdf-schema.ttl @@ -0,0 +1,154 @@ +# RDF Namespace document converted into Turtle + +@prefix : <http://www.w3.org/2000/01/rdf-schema#> . +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . + +rdf:type a rdf:Property; + :comment "Indicates membership of a class"; + :label "type"@en, + "type"@fr; + :range :Class . + +:Class a :Class; + :comment "The concept of Class"; + :label "Class"@en, + "Classe"@fr; + :subClassOf :Resource . + +:ConstraintProperty a :Class; + :comment "Properties used to express RDF Schema constraints."; + :label "ConstraintProperty"@en, + "Propri\u00E9t\u00E9Contrainte"@fr; + :subClassOf :ConstraintResource, + rdf:Property . + +:ConstraintResource a :Class; + :comment "Resources used to express RDF Schema constraints."; + :label "ConstraintResource"@en, + "RessourceContrainte"@fr; + :subClassOf :Resource . + +:Container a :Class; + :comment "This represents the set Containers."; + :label "Container"@en, + "Enveloppe"@fr; + :subClassOf :Resource . + +:ContainerMembershipProperty a :Class; + :label "ContainerMembershipProperty"@en; + :subClassOf rdf:Property . + +:Literal a :Class; + :comment "This represents the set of atomic values, eg. textual strings."; + :label "Literal"@en, + "Litt\u00E9ral"@fr . + +:Resource a :Class; + :comment "The most general class"; + :label "Resource"@en, + "Ressource"@fr . + +:comment a rdf:Property; + :comment "Use this for descriptions"; + :domain :Resource; + :label "comment"@en, + "commentaire"@fr; + :range :Literal . + +:domain a :ConstraintProperty; + :comment "This is how we associate a class with properties that its instances can have"; + :label "domain"@en, + "domaine"@fr . + +:isDefinedBy a rdf:Property; + :comment "Indicates a resource containing and defining the subject resource."; + :domain :Resource; + :label "esD\u00E9finiPar"@fr, + "isDefinedBy"@en; + :range :Resource; + :subPropertyOf :seeAlso . + +:label a rdf:Property; + :comment "Provides a human-readable version of a resource name."; + :domain :Resource; + :label "label"@en, + "label"@fr; + :range :Literal . + +:range a :ConstraintProperty; + :comment "Properties that can be used in a schema to provide constraints"; + :domain rdf:Property; + :label "range"@en, + "\u00E9tendue"@fr; + :range :Class . + +:seeAlso a rdf:Property; + :comment "Indicates a resource that provides information about the subject resource."; + :domain :Resource; + :label "seeAlso"@en, + "voirAussi"@fr; + :range :Resource . + +:subClassOf a rdf:Property; + :comment "Indicates membership of a class"; + :domain :Class; + :label "sousClasseDe"@fr, + "subClassOf"@en; + :range :Class . + +:subPropertyOf a rdf:Property; + :comment "Indicates specialization of properties"; + :domain rdf:Property; + :label "sousPropri\u00E9t\u00E9De"@fr, + "subPropertyOf"@en; + :range rdf:Property . + +rdf:Alt a :Class; + :label "Alt"@en, + "Choix"@fr; + :subClassOf :Container . + +rdf:Bag a :Class; + :label "Bag"@en, + "Ensemble"@fr; + :subClassOf :Container . + +rdf:Property a :Class; + :comment "The concept of a property."; + :label "Property"@en, + "Propri\u00E9t\u00E9"@fr; + :subClassOf :Resource . + +rdf:Seq a :Class; + :label "Sequence"@en, + "S\u00E9quence"@fr; + :subClassOf :Container . + +rdf:Statement a :Class; + :comment "This represents the set of reified statements."; + :label "D\u00E9claration"@fr, + "Statement"@en; + :subClassOf :Resource . + +rdf:object a rdf:Property; + :domain rdf:Statement; + :label "object"@en, + "objet"@fr . + +rdf:predicate a rdf:Property; + :domain rdf:Statement; + :label "predicate"@en, + "pr\u00E9dicat"@fr; + :range rdf:Property . + +rdf:subject a rdf:Property; + :domain rdf:Statement; + :label "subject"@en, + "sujet"@fr; + :range :Resource . + +rdf:value a rdf:Property; + :label "object"@en, + "value"@fr . + +: :seeAlso <http://www.w3.org/2000/01/rdf-schema-more> . diff --git a/tests/mkr/rdfq-results.mkr b/tests/mkr/rdfq-results.mkr new file mode 100644 index 0000000..9cbd603 --- /dev/null +++ b/tests/mkr/rdfq-results.mkr @@ -0,0 +1,13 @@ +@base <http://www.w3.org/2001/sw/DataAccess/df1/tests/rdfq-results.ttl> ; +@prefix rdf: <../../../../../1999/02/22-rdf-syntax-ns#> ; +@prefix rs: <http://jena.hpl.hp.com/2003/03/result-set#> ; + +result is <> ; +result is relation with format = csv ; +begin relation result ; +x, y ; +anon2, _:a ; +123, <http://example.com/resource1> ; +2003-01-21, <http://example.com/resource2> ; +anon1, _:a ; +end relation result ; diff --git a/tests/mkr/rdfq-results.ttl b/tests/mkr/rdfq-results.ttl new file mode 100644 index 0000000..c6e72aa --- /dev/null +++ b/tests/mkr/rdfq-results.ttl @@ -0,0 +1,39 @@ +# from http://www.w3.org/2003/03/rdfqr-tests/recording-query-results.html + +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . +@prefix rs: <http://jena.hpl.hp.com/2003/03/result-set#> . + + +<> rdf:type rs:ResultSet ; + rs:size 4 ; + rs:resultVariable "x" ; rs:resultVariable "y" ; + rs:solution + [ rdf:type rs:ResultSolution ; + rs:binding [ rs:variable "x" ; rs:value 123 ] ; + rs:binding [ rs:variable "y" ; rs:value <http://example.com/resource1> ] + ] ; + + rs:solution + [ rdf:type rs:ResultSolution ; + rs:binding [ rs:variable "x" ; + rs:value "2003-01-21" ] ; + rs:binding [ rs:variable "y" ; + rs:value <http://example.com/resource2> ] + ] ; + + rs:solution + [ rdf:type rs:ResultSolution ; + rs:binding [ rs:variable "x" ; + rs:value "anon1" ] ; + rs:binding [ rs:variable "y" ; + rs:value _:a ] + ] ; + + rs:solution + [ rdf:type rs:ResultSolution ; + rs:binding [ rs:variable "x" ; + rs:value "anon2" ] ; + rs:binding [ rs:variable "y" ; + rs:value _:a ] + ] ; + . diff --git a/tests/mkr/rdfs-namespace.mkr b/tests/mkr/rdfs-namespace.mkr new file mode 100644 index 0000000..001b552 --- /dev/null +++ b/tests/mkr/rdfs-namespace.mkr @@ -0,0 +1,185 @@ +@base <http://www.w3.org/2000/01/rdf-schema> ; +@prefix rdf: <../../1999/02/22-rdf-syntax-ns#> ; +@prefix : <#> ; + +rdf:Alt has + rdf:type = [:Class], + :comment = ["A collection of alternatives."@en], + :isDefinedBy = [<../../1999/02/22-rdf-syntax-ns#>], + :label = ["Alt"@en], + :subClassOf = [:Container] ; + +rdf:Bag has + rdf:type = [:Class], + :comment = ["An unordered collection."@en], + :isDefinedBy = [<../../1999/02/22-rdf-syntax-ns#>], + :label = ["Bag"@en], + :subClassOf = [:Container] ; + +rdf:Property has + rdf:type = [:Class], + :comment = ["The concept of a property."], + :isDefinedBy = [<../../1999/02/22-rdf-syntax-ns#>], + :label = ["Property"@en], + :subClassOf = [:Resource] ; + +rdf:Seq has + rdf:type = [:Class], + :comment = ["An ordered collection."@en], + :isDefinedBy = [<../../1999/02/22-rdf-syntax-ns#>], + :label = ["Seq"@en], + :subClassOf = [:Container] ; + +rdf:Statement has + rdf:type = [:Class], + :comment = ["The class of RDF statements."], + :isDefinedBy = [<../../1999/02/22-rdf-syntax-ns#>], + :label = ["Statement"@en], + :subClassOf = [:Resource] ; + +rdf:object has + rdf:type = [rdf:Property], + :comment = ["The object of an RDF statement."], + :domain = [rdf:Statement], + :isDefinedBy = [<../../1999/02/22-rdf-syntax-ns#>], + :label = ["object"@en] ; + +rdf:predicate has + rdf:type = [rdf:Property], + :comment = ["the predicate of an RDF statement."], + :domain = [rdf:Statement], + :isDefinedBy = [<../../1999/02/22-rdf-syntax-ns#>], + :label = ["predicate"@en], + :range = [rdf:Property] ; + +rdf:subject has + rdf:type = [rdf:Property], + :comment = ["The subject of an RDF statement."], + :domain = [rdf:Statement], + :isDefinedBy = [<../../1999/02/22-rdf-syntax-ns#>], + :label = ["subject"@en], + :range = [:Resource] ; + +rdf:type has + rdf:type = [rdf:Property], + :comment = ["Indicates membership of a class"], + :domain = [:Resource], + :isDefinedBy = [<../../1999/02/22-rdf-syntax-ns#>], + :label = ["type"@en], + :range = [:Class] ; + +rdf:value has + rdf:type = [rdf:Property], + :comment = ["Identifies the principal value (usually a string) of a property when the property value is a structured resource"], + :domain = [:Resource], + :isDefinedBy = [<../../1999/02/22-rdf-syntax-ns#>], + :label = ["value"@en] ; + +<#> has + :seeAlso = [<rdf-schema-more>] ; + +:Class has + rdf:type = [:Class], + :comment = ["The concept of Class"], + :isDefinedBy = [<#>], + :label = ["Class"@en], + :subClassOf = [:Resource] ; + +:Container has + rdf:type = [:Class], + :comment = ["This represents the set Containers."], + :isDefinedBy = [<#>], + :label = ["Container"@en], + :subClassOf = [:Resource] ; + +:ContainerMembershipProperty has + rdf:type = [:Class], + :comment = ["The container membership properties, rdf:1, rdf:2, ..., all of which are sub-properties of 'member'."], + :isDefinedBy = [<#>], + :label = ["ContainerMembershipProperty"@en], + :subClassOf = [rdf:Property] ; + +:Literal has + rdf:type = [:Class], + :comment = ["This represents the set of atomic values, eg. textual strings."], + :isDefinedBy = [<#>], + :label = ["Literal"@en] ; + +:Resource has + rdf:type = [:Class], + :comment = ["The class resource, everything."], + :isDefinedBy = [<#>], + :label = ["Resource"@en] ; + +:comment has + rdf:type = [rdf:Property], + :comment = ["Use this for descriptions"], + :domain = [:Resource], + :isDefinedBy = [<#>], + :label = ["comment"@en], + :range = [:Literal] ; + +:domain has + rdf:type = [rdf:Property], + :comment = ["A domain class for a property type"], + :domain = [rdf:Property], + :isDefinedBy = [<#>], + :label = ["domain"@en], + :range = [:Class] ; + +:isDefinedBy has + rdf:type = [rdf:Property], + :comment = ["Indicates the namespace of a resource"], + :domain = [:Resource], + :isDefinedBy = [<#>], + :label = ["isDefinedBy"@en], + :range = [:Resource], + :subPropertyOf = [:seeAlso] ; + +:label has + rdf:type = [rdf:Property], + :comment = ["Provides a human-readable version of a resource name."], + :domain = [:Resource], + :isDefinedBy = [<#>], + :label = ["label"@en], + :range = [:Literal] ; + +:member has + rdf:type = [rdf:Property], + :comment = ["a member of a container"], + :domain = [:Container], + :isDefinedBy = [<#>], + :label = ["member"@en] ; + +:range has + rdf:type = [rdf:Property], + :comment = ["A range class for a property type"], + :domain = [rdf:Property], + :isDefinedBy = [<#>], + :label = ["range"@en], + :range = [:Class] ; + +:seeAlso has + rdf:type = [rdf:Property], + :comment = ["A resource that provides information about the subject resource"], + :domain = [:Resource], + :isDefinedBy = [<#>], + :label = ["seeAlso"@en], + :range = [:Resource] ; + +:subClassOf has + rdf:type = [rdf:Property], + :comment = ["Indicates membership of a class"], + :domain = [:Class], + :isDefinedBy = [<#>], + :label = ["subClassOf"@en], + :range = [:Class] ; + +:subPropertyOf has + rdf:type = [rdf:Property], + :comment = ["Indicates specialization of properties"], + :domain = [rdf:Property], + :isDefinedBy = [<#>], + :label = ["subPropertyOf"@en], + :range = [rdf:Property] ; + diff --git a/tests/mkr/rdfs-namespace.ttl b/tests/mkr/rdfs-namespace.ttl new file mode 100644 index 0000000..0d73e6b --- /dev/null +++ b/tests/mkr/rdfs-namespace.ttl @@ -0,0 +1,160 @@ +# RDFS Namespace document converted into Turtle + +@prefix : <http://www.w3.org/2000/01/rdf-schema#> . +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . + +rdf:type a rdf:Property; + :comment "Indicates membership of a class"; + :domain :Resource; + :isDefinedBy rdf:; + :label "type"@en; + :range :Class . + +rdf:Alt a :Class; + :comment "A collection of alternatives."@en; + :isDefinedBy rdf:; + :label "Alt"@en; + :subClassOf :Container . + +rdf:Bag a :Class; + :comment "An unordered collection."@en; + :isDefinedBy rdf:; + :label "Bag"@en; + :subClassOf :Container . + +rdf:Property a :Class; + :comment "The concept of a property."; + :isDefinedBy rdf:; + :label "Property"@en; + :subClassOf :Resource . + +rdf:Seq a :Class; + :comment "An ordered collection."@en; + :isDefinedBy rdf:; + :label "Seq"@en; + :subClassOf :Container . + +rdf:Statement a :Class; + :comment "The class of RDF statements."; + :isDefinedBy rdf:; + :label "Statement"@en; + :subClassOf :Resource . + +rdf:object a rdf:Property; + :comment "The object of an RDF statement."; + :domain rdf:Statement; + :isDefinedBy rdf:; + :label "object"@en . + +rdf:predicate a rdf:Property; + :comment "the predicate of an RDF statement."; + :domain rdf:Statement; + :isDefinedBy rdf:; + :label "predicate"@en; + :range rdf:Property . + +rdf:subject a rdf:Property; + :comment "The subject of an RDF statement."; + :domain rdf:Statement; + :isDefinedBy rdf:; + :label "subject"@en; + :range :Resource . + +rdf:value a rdf:Property; + :comment "Identifies the principal value (usually a string) of a property when the property value is a structured resource"; + :domain :Resource; + :isDefinedBy rdf:; + :label "value"@en . + +: :seeAlso <http://www.w3.org/2000/01/rdf-schema-more> . + +:Class a :Class; + :comment "The concept of Class"; + :isDefinedBy :; + :label "Class"@en; + :subClassOf :Resource . + +:Container a :Class; + :comment "This represents the set Containers."; + :isDefinedBy :; + :label "Container"@en; + :subClassOf :Resource . + +:ContainerMembershipProperty a :Class; + :comment "The container membership properties, rdf:1, rdf:2, ..., all of which are sub-properties of 'member'."; + :isDefinedBy :; + :label "ContainerMembershipProperty"@en; + :subClassOf rdf:Property . + +:Literal a :Class; + :comment "This represents the set of atomic values, eg. textual strings."; + :isDefinedBy :; + :label "Literal"@en . + +:Resource a :Class; + :comment "The class resource, everything."; + :isDefinedBy :; + :label "Resource"@en . + +:comment a rdf:Property; + :comment "Use this for descriptions"; + :domain :Resource; + :isDefinedBy :; + :label "comment"@en; + :range :Literal . + +:domain a rdf:Property; + :comment "A domain class for a property type"; + :domain rdf:Property; + :isDefinedBy :; + :label "domain"@en; + :range :Class . + +:isDefinedBy a rdf:Property; + :comment "Indicates the namespace of a resource"; + :domain :Resource; + :isDefinedBy :; + :label "isDefinedBy"@en; + :range :Resource; + :subPropertyOf :seeAlso . + +:label a rdf:Property; + :comment "Provides a human-readable version of a resource name."; + :domain :Resource; + :isDefinedBy :; + :label "label"@en; + :range :Literal . + +:member a rdf:Property; + :comment "a member of a container"; + :domain :Container; + :isDefinedBy :; + :label "member"@en . + +:range a rdf:Property; + :comment "A range class for a property type"; + :domain rdf:Property; + :isDefinedBy :; + :label "range"@en; + :range :Class . + +:seeAlso a rdf:Property; + :comment "A resource that provides information about the subject resource"; + :domain :Resource; + :isDefinedBy :; + :label "seeAlso"@en; + :range :Resource . + +:subClassOf a rdf:Property; + :comment "Indicates membership of a class"; + :domain :Class; + :isDefinedBy :; + :label "subClassOf"@en; + :range :Class . + +:subPropertyOf a rdf:Property; + :comment "Indicates specialization of properties"; + :domain rdf:Property; + :isDefinedBy :; + :label "subPropertyOf"@en; + :range rdf:Property . diff --git a/tests/mkr/test-07.mkr b/tests/mkr/test-07.mkr new file mode 100644 index 0000000..7544d2d --- /dev/null +++ b/tests/mkr/test-07.mkr @@ -0,0 +1,7 @@ +@base <http://www.w3.org/2001/sw/DataAccess/df1/tests/test-07.ttl> ; +@prefix rdf: <../../../../../1999/02/22-rdf-syntax-ns#> ; +@prefix : <http://example.org/stuff/1.0/> ; + +:a has + :b = ["apple","banana"] ; + diff --git a/tests/mkr/test-07.ttl b/tests/mkr/test-07.ttl new file mode 100644 index 0000000..8455940 --- /dev/null +++ b/tests/mkr/test-07.ttl @@ -0,0 +1,3 @@ +@prefix : <http://example.org/stuff/1.0/> . +:a :b ( "apple" "banana" ) . + diff --git a/tests/mkr/test-08.mkr b/tests/mkr/test-08.mkr new file mode 100644 index 0000000..fe25559 --- /dev/null +++ b/tests/mkr/test-08.mkr @@ -0,0 +1,7 @@ +@base <http://www.w3.org/2001/sw/DataAccess/df1/tests/test-08.ttl> ; +@prefix rdf: <../../../../../1999/02/22-rdf-syntax-ns#> ; +@prefix : <http://example.org/stuff/1.0/> ; + +:a has + :b = [ ] ; + diff --git a/tests/mkr/test-08.ttl b/tests/mkr/test-08.ttl new file mode 100644 index 0000000..adce0a2 --- /dev/null +++ b/tests/mkr/test-08.ttl @@ -0,0 +1,3 @@ +@prefix : <http://example.org/stuff/1.0/> . +:a :b ( ) . + diff --git a/tests/mkr/test-16a.mkr b/tests/mkr/test-16a.mkr new file mode 100644 index 0000000..45a5696 --- /dev/null +++ b/tests/mkr/test-16a.mkr @@ -0,0 +1,7 @@ +@base <http://www.w3.org/2001/sw/DataAccess/df1/tests/test-16a.ttl> ; +@prefix rdf: <../../../../../1999/02/22-rdf-syntax-ns#> ; +@prefix : <http://example.org/ns#> ; + +:a has + :b = [:c1, :c10, :c2, :c3, :c4, :c5, :c6, :c7, :c8, :c9] ; + diff --git a/tests/mkr/test-16a.ttl b/tests/mkr/test-16a.ttl new file mode 100644 index 0000000..246ee9b --- /dev/null +++ b/tests/mkr/test-16a.ttl @@ -0,0 +1,11 @@ +@prefix : <http://example.org/ns#> . +:a :b :c1; + :b :c2; + :b :c3; + :b :c4; + :b :c5; + :b :c6; + :b :c7; + :b :c8; + :b :c9; + :b :c10 . diff --git a/tests/mkr/test-28.mkr b/tests/mkr/test-28.mkr new file mode 100644 index 0000000..8f66e77 --- /dev/null +++ b/tests/mkr/test-28.mkr @@ -0,0 +1,6 @@ +@base <http://www.w3.org/2001/sw/DataAccess/df1/tests/test-28.ttl> ; +@prefix rdf: <../../../../../1999/02/22-rdf-syntax-ns#> ; + +<http://example.org/foo> has + <http://example.org/bar> = [1, 1., 1.0, 1.000000000, 1.2345678901234567890123457890, 2.23400000000000000000005, 2.2340000000000000000005, 2.234000000000000000005, 2.23400000000000000005, 2.2340000000000000005, 2.234000000000000005, 2.23400000000000005, 2.2340000000000005, 2.234000000000005, 2.23400000000005, 2.2340000000005, 2.234000000005, 2.23400000005, 2.2340000005, 2.234000005, 2.3, 2.345] ; + diff --git a/tests/mkr/test-28.ttl b/tests/mkr/test-28.ttl new file mode 100644 index 0000000..7357dd4 --- /dev/null +++ b/tests/mkr/test-28.ttl @@ -0,0 +1,22 @@ +<http://example.org/foo> <http://example.org/bar> "2.345"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "1"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "1.0"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "1."^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "1.000000000"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.3"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.234000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.2340000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.23400000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.234000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.2340000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.23400000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.234000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.2340000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.23400000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.234000000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.2340000000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.23400000000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.234000000000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.2340000000000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.23400000000000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "1.2345678901234567890123457890"^^<http://www.w3.org/2001/XMLSchema#decimal> . diff --git a/tests/mkr/test-31.mkr b/tests/mkr/test-31.mkr new file mode 100644 index 0000000..c54f373 --- /dev/null +++ b/tests/mkr/test-31.mkr @@ -0,0 +1,12 @@ +@base <http://www.w3.org/2001/sw/DataAccess/df1/tests/test-31.ttl> ; +@prefix rdf: <../../../../../1999/02/22-rdf-syntax-ns#> ; +@prefix rss: <http://purl.org/rss/1.0/> ; + +<http://example.org/block> has + rss:items = [{ + _:genid1 has + rdf:_1 = [<http://example.org/first-item>], + rdf:_2 = [<http://example.org/second-item>], + rdf:type = [rdf:Seq] + ;}] ; + diff --git a/tests/mkr/test-31.ttl b/tests/mkr/test-31.ttl new file mode 100644 index 0000000..c1130ed --- /dev/null +++ b/tests/mkr/test-31.ttl @@ -0,0 +1,10 @@ +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . +@prefix rss: <http://purl.org/rss/1.0/> . + +<http://example.org/block> + rss:items [ + rdf:_1 <http://example.org/first-item> ; + rdf:_2 <http://example.org/second-item> ; + a rdf:Seq + ] . + diff --git a/tests/mkr/test-32.mkr b/tests/mkr/test-32.mkr new file mode 100644 index 0000000..decb5e2 --- /dev/null +++ b/tests/mkr/test-32.mkr @@ -0,0 +1,7 @@ +@base <http://www.w3.org/2001/sw/DataAccess/df1/tests/test-32.ttl> ; +@prefix rdf: <../../../../../1999/02/22-rdf-syntax-ns#> ; +@prefix ex: <http://example.org/ns#> ; + +ex:node1 has + rdf:value = [ex:item1,ex:item2] ; + diff --git a/tests/mkr/test-32.ttl b/tests/mkr/test-32.ttl new file mode 100644 index 0000000..abf26d2 --- /dev/null +++ b/tests/mkr/test-32.ttl @@ -0,0 +1,5 @@ +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . +@prefix ex: <http://example.org/ns#> . + +# Based on Issue#0000274 http://bugs.librdf.org/mantis/view.php?id=274 +ex:node1 rdf:value ( ex:item1 ex:item2 ) . diff --git a/tests/mkr/test-34.mkr b/tests/mkr/test-34.mkr new file mode 100644 index 0000000..1b997e1 --- /dev/null +++ b/tests/mkr/test-34.mkr @@ -0,0 +1,7 @@ +@base <http://www.w3.org/2001/sw/DataAccess/df1/tests/test-34.ttl> ; +@prefix rdf: <../../../../../1999/02/22-rdf-syntax-ns#> ; +@prefix dbpedia: <http://dbpedia.org/resource/> ; + +<http://example.org> has + <http://xmlns.com/foaf/0.1/page> = [<http://dbpedia.org/resource/Babylon_A.D.>] ; + diff --git a/tests/mkr/test-34.ttl b/tests/mkr/test-34.ttl new file mode 100644 index 0000000..eb39a8d --- /dev/null +++ b/tests/mkr/test-34.ttl @@ -0,0 +1,4 @@ +@prefix dbpedia: <http://dbpedia.org/resource/> . + +<http://example.org> + <http://xmlns.com/foaf/0.1/page> <http://dbpedia.org/resource/Babylon_A.D.> . |