| Kind | Covered | All | % |
| expression | 38 | 223 | 17.0 |
| branch | 2 | 10 | 20.0 |
1 ;;; -*- Mode: lisp; Syntax: ansi-common-lisp; Base: 10; Package: cl-user; -*-2 3 (in-package :cl-user)4 5 ;;; This file is the package definition for the 'org.datagraph.spocq' core6 ;;;7 ;;; Copyright 2010 [james anderson](mailto:james.anderson@setf.de) All Rights Reserved8 ;;; Copyright 2013 [james anderson](mailto:james.anderson@setf.de) All Rights Reserved9 ;;;10 ;;; extracting term names from rdf, where the namespace name ends in '#':11 ;;; fgrep 'rdf:about=' xxx.rdf | fgrep <ns-prefix> | sed 's,.*#,",' | sed 's,">.*,",'12 ;;; fgrep 'rdf:ID=' xxx.rdf | fgrep <ns-prefix> | sed 's,.*=",",' | sed 's,">.*,",' | sort13 14 (pushnew :spocq *features*)15 16 (eval-when (:compile-toplevel :load-toplevel :execute)17 (export '(mime::triples18 mime::quads)19 :mime))20 21 (modpackage :rdf22 (:export :defclass :defproperty))23 24 25 ;;; need to intern in order to import below26 (dolist (s '(:|account|27 :|cast|28 :|reply|29 :|spocq|30 :|error|31 :|nil|32 :|true|33 :|false|34 :|bert|35 :|dict|36 :|priority|37 :|quota|38 :|<|39 :|:|40 :|?|41 :|@|42 :|^|43 :|"|44 :|quota|45 :|priority|46 :|exchange|47 :|routing_key|48 :|bgp_id|49 :|graphs|))50 (intern (string s) :keyword))51 52 53 (defpackage :org.datagraph.spocq.algebra54 (:nicknames :spocq.a)55 (:use )56 (:export "abs"57 "add"58 "agp"59 "and"60 "ask"61 "asc"62 "avg"63 "aggregate"64 "bindings"65 "bgp"66 "bind" ;; for use in bgp67 "bnode"68 "bound"69 "cardinality"70 "ceil"71 "clear"72 "concat"73 "construct"74 "contains"75 "corr"76 "count"77 "copy"78 "create"79 "datatype"80 "day"81 "declare"82 "deleteData"83 "deleteWhere"84 "describe"85 "desc"86 "diff"87 "distinct"88 "drop"89 "encode_for_uri"90 "equivalents"91 "exprlist"92 "extend"93 "exists"94 "every"95 "f"96 "false"97 "filter"98 "floor"99 "from"100 "from-named"101 "graph"102 "group_concat"103 "group"104 "hours"105 "id"106 "if"107 "in"108 "insertData"109 "iri"110 "isBlank"111 "isLiteral"112 "isIRI"113 "isURI"114 "join"115 "lang"116 "langMatches"117 "lcase"118 "leftjoin"119 "list"120 "load"121 "max"122 "md5"123 "merge"124 "min"125 "minus"126 "minutes"127 "modify"128 "month"129 "move"130 "multiset"131 "nil"132 "not"133 "notin"134 "now"135 "null"136 "opaque"137 "or"138 "order"139 "project"140 "quad"141 "rand"142 "reduced"143 "regex"144 "replace"145 "revision"146 "round"147 "row"148 "sameTerm"149 "sample"150 "seconds"151 "select"152 "service"153 "servicejoin"154 "sha1"155 "sha224"156 "sha256"157 "sha384"158 "sha512"159 "slice"160 "some"161 "std"162 "str"163 "strafter"164 "strbefore"165 "strends"166 "strdt"167 "strlang"168 "strlen"169 "strstarts"170 "struuid"171 "substr"172 "sum"173 "t"174 "table"175 "then"176 "timezone"177 "to-list"178 "triple"179 "true"180 "ucase"181 "unbound"182 "union"183 "unit"184 "update"185 "uri"186 "uuid"187 "xor"188 "year"189 "tz"190 "version-constraint"191 "view"192 193 "+"194 "!"195 "-"196 "||"197 "&&"198 "="199 "!="200 "<"201 ">"202 "<="203 ">="204 "*"205 "/"206 "_"207 )208 209 ;; alternatively, define a reader package which uses :spocq.a and :keyword210 ;; in any case, these are case-sensitive, as they emulate etf atoms211 (:import-from :keyword212 :|account|213 :|cast|214 :|reply|215 ;:|error|216 :|spocq|217 :|bert|218 :|dict|219 :|priority|220 :|quota|221 :|<|222 :|:|223 :|?|224 :|@|225 :|^|226 :|"|227 :|quota|228 :|priority|229 :|exchange|230 :|routing_key|231 :|bgp_id|232 :|graphs|)233 234 (:documentation235 "The SPOCQ abstract algebra pagkage.236 237 The SPARQL Query [Algebra](http://www.w3.org/TR/rdf-sparql-query/#sparqlQuery)238 specifies the abstract syntax:239 240 Patterns Modifiers Query Forms241 RDF terms DISTINCT SELECT242 triple patterns REDUCED CONSTRUCT243 Basic graph patterns PROJECT DESCRIBE244 Groups ORDER BY ASK245 OPTIONAL LIMIT 246 UNION OFFSET 247 GRAPH 248 FILTER 249 250 of which the triple and basic graph patterns will include251 triple and quad constructors, and construct expressions will include252 triple, quad, and graph constructors. These name abstract operators, which are253 defined as macros in terms of the evaluation operators."))254 255 256 (defpackage :spocq257 (:nicknames :org.datagraph.spocq)258 (:use :common-lisp)259 (:shadow :string :make-string :boolean :float :integer260 :time :unbound-variable :number)261 #+(or)262 (:import-from :common-lisp :in-package :defstruct :defparameter :defvar :defmacro263 :print-object :format :simple-type-error :type-of :cond264 :nil :t265 :&optional :or :symbol :error :fixnum :null)266 (:import-from :spocq.a267 :|true|268 :|false|)269 (:export :|account| ; message keys !!! obsolete270 :|bgpfield|271 :|bgpmatch|272 :|error|273 :|false|274 :|plan|275 :|query|276 :|response|277 :|terminate|278 :|true|279 :+reference-fraction+280 :+reference-year+281 :+reference-time-year+282 :+reference-month+283 :+reference-day+284 :+reference-minute+285 :+reference-hour+286 :+reference-second+287 :+reference-zone+288 :account289 :account-name290 :atomic-typed-literal291 :atomic-typed-literal-p292 :atomic-typed-literal-value293 :bgp294 :blank-node295 :blank-node-constant-p296 :blank-node-label297 :blank-node-p298 :boolean299 :boolean-p300 :boolean-value301 :compound-typed-literal302 :date303 :date-day304 :date-hour305 :date-interval306 :date-interval-end307 :date-interval-start308 :date-minute309 :date-month310 :date-zone311 :date-p312 :date-time313 :date-time-day314 :date-time-fraction315 :date-time-interval316 :date-time-interval-end317 :date-time-interval-start318 :date-time-hour319 :date-time-minute320 :date-time-month321 :date-time-p322 :date-time-second323 :date-time-universal-time324 :date-time-year325 :date-time-zone326 :date-universal-time327 :date-year328 :day-time-duration329 :day-time-duration-day330 :day-time-duration-fraction331 :day-time-duration-hour332 :day-time-duration-minute333 :day-time-duration-month334 :day-time-duration-second335 :day-time-duration-second-location336 :day-time-duration-sign337 :day-time-duration-year338 :decimal339 :decimal-p340 :double341 :double-p342 :duration343 :duration-day344 :duration-fraction345 :duration-hour346 :duration-minute347 :duration-month348 :duration-month-location349 :duration-p350 :duration-second351 :duration-second-location352 :duration-sign353 :duration-universal-time354 :duration-year355 :file-url356 :file-url-lexical-form357 :float358 :float-p359 :format-date360 :format-date-time361 :format-day-time-duration362 :format-duration363 :format-g-day364 :format-g-month365 :format-g-month-day366 :format-g-year367 :format-g-year-month368 :format-zone-offset369 :format-time370 :format-year-month-duration371 :g-day372 :g-day-day373 :g-day-hour374 :g-day-minute375 :g-day-month376 :g-day-second377 :g-day-year378 :g-day-zone379 :g-month380 :g-month-day381 :g-month-day-day382 :g-month-day-hour383 :g-month-day-minute384 :g-month-day-month385 :g-month-day-second386 :g-month-day-year387 :g-month-day-zone388 :g-month-hour389 :g-month-minute390 :g-month-month391 :g-month-second392 :g-month-year393 :g-month-zone394 :g-year395 :g-year-day396 :g-year-hour397 :g-year-minute398 :g-year-month399 :g-year-second400 :g-year-year401 :g-year-zone402 :g-year-month-day403 :g-year-month-hour404 :g-year-month-minute405 :g-year-month-month406 :g-year-month-second407 :g-year-month-year408 :g-year-month-zone409 :graph410 :http-url411 :integer412 :integer-p413 :interval414 :interval-start415 :interval-end416 :iri417 :iri-lexical-form418 :iri-p419 :leftjoin420 :literal421 :literal-datatype-uri422 :literal-lexical-form423 :literal-p424 :mailto-url425 :make-blank-node426 :make-boolean427 :make-date428 :make-date-interval429 :make-date-time430 :make-date-time-interval431 :make-day-time-duration432 :make-decimal433 :make-decimal434 :make-double435 :make-duration436 :make-file-url437 :make-float438 :make-g-day439 :make-g-month440 :make-g-month-day441 :make-g-year442 :make-g-year-month443 :make-http-url444 :make-integer445 :make-iri446 :make-mailto-url447 :make-plain-literal448 :make-plain-literal449 :make-quad450 :make-revision-interval451 :make-sha256-urn452 :make-string453 :make-temporal-location454 :make-time455 :make-time-interval456 :make-triple457 :make-unbound-variable458 :make-unsupported-typed-literal459 :make-url460 :make-uuid461 :make-year-month-duration462 :non-literal463 :non-literal-p464 :number465 :plain-literal466 :plain-literal-lexical-form467 :plain-literal-language-tag468 :plain-literal-p469 :quad470 :quad-graph471 :quad-object472 :quad-predicate473 :quad-subject474 :tquad475 :tquad-time476 :revision-interval477 :revision-interval-end478 :revision-interval-start479 :sha256-urn480 :sha256-urn-lexical-form481 :sha256-urn-p482 :string483 :string-p484 :temporal485 :temporal-location486 :temporal-location-timeline-location487 :temporal-timeline-location488 :temporal-zone489 :term490 :term-id491 :term-p492 :time493 :time-fraction494 :time-hour495 :time-interval496 :time-interval-end497 :time-interval-start498 :time-minute499 :time-second500 :time-day501 :time-month502 :time-p503 :time-year504 :time-universal-time505 :time-zone506 :zone-fragment507 :triple508 :triple-object509 :triple-predicate510 :triple-subject511 :typed-literal512 :typed-literal-p513 :unbound-variable514 :unbound-variable-name515 :unbound-variable-p516 :unsupported-typed-literal517 :unsupported-typed-literal-condition518 :unsupported-typed-literal-datatype-uri519 :unsupported-typed-literal-p520 :url521 :url-lexical-form522 :url-p523 :uuid524 :uuid-lexical-form525 :uuid-p526 :year-month-duration527 :year-month-duration-day528 :year-month-duration-fraction529 :year-month-duration-hour530 :year-month-duration-minute531 :year-month-duration-month532 :year-month-duration-month-location533 :year-month-duration-year534 :year-month-duration-second535 :year-month-duration-sign536 )537 (:documentation "The SPOCQ term model package.538 539 It exports the names for term classes and aperators for boxed terms."))540 541 542 (defpackage :org.datagraph.spocq.evaluation543 (:nicknames :spocq.e)544 (:use )545 (:import-from :spocq546 :make-quad547 :make-triple548 :triple549 :triple-object550 :triple-predicate551 :triple-subject552 :quad553 :quad-graph554 :quad-object555 :quad-predicate556 :quad-subject)557 (:export "+" "!" "-" "||" "&&" "=" "!=" "<" ">" "<=" ">=" "*" "/"558 :*dydra-cli-path*559 :*response-limit*560 :*response-offset*561 :abort-error562 :abs563 :account564 :add-graph565 :aggregate566 :aggregate-projection-error567 :api-authorization-error568 :authorization-error569 :argument-type-error570 :ask571 :cached-class572 :cached-object573 :cached-persistent-class574 :cached-persistent-object575 :call-in-transaction576 :call-with-open-repository577 :call-with-new-task578 :call-with-task579 :call-with-task-environment580 :clear-graph581 :compatible?582 :compilation-error583 :constraint-violation584 :base-dimensions585 :bgp586 :binary-exists587 :bindings588 :blank-node-p589 :blank-p590 :bnode591 :boolean592 :boolean-p593 :bound594 :cached-persistent-class595 :cardinality596 :ceil597 :class-cache598 :clear599 :compilation-error600 :constantp601 :construct602 :contains603 :contexts604 :copy-graph605 :count606 :create-graph607 :data-type608 :date609 :date-time610 :day611 :day-time-duration612 :decimal613 :delete-data614 :describe615 :described-object616 :diff617 :dimensions618 :distinct619 :double620 :drop-graph621 :duration622 :elementary-select623 :encode-for-uri624 :equal625 :error626 :eval627 :exists628 :extend629 :filter630 :float631 :floor632 :funcall ;; isolated from cl:funcall633 :g-day634 :g-day-day635 :g-month636 :g-month-day637 :g-year638 :g-year-month639 :graph640 :graph-found-error641 :graph-management-error642 :graph-not-found-error643 :greaterp644 :group645 :hours646 :import-limit647 :identity648 :in649 :insert-data650 :instance-identifier651 :instance-state652 :instance-store-repository-id653 :instance-store-revision654 :instance-store-graph655 :integer656 :invalid-graph-error657 :iri658 :iri-equal659 :iri-lexical-form660 :iri-p661 :join662 :join-dimensions663 :lang664 :lang-matches665 :lcase666 :leftjoin667 :lessp668 :library-resource-not-found669 :literalp670 :load-graph671 :make-literal672 :make-quad673 :make-sha1-digest674 :make-triple675 :max676 :md5677 :merge678 :message-syntax-error679 :min680 :minus681 :minutes682 :modify683 :month684 :move-graph685 :multiset686 :now687 :null-exists688 :numeric-p689 :objects690 :order691 :persistent-class692 :persistent-object693 :predicates694 :project695 :projection-dimensions696 :quad697 :quad-graph698 :quad-object699 :quad-predicate700 :quad-subject701 :quota-error702 :rand703 :redefined-variable-error704 :reduced705 :reference-dimensions706 :regex707 :replace708 :report-condition709 :repository710 :repository-clear-graph711 :repository-id712 :repository-identifier713 :repository-is-revisioned714 :repository-not-found-error715 :repository-revision-id716 :repository-revision-write-date717 :repository-statement-count718 :repository-statistics719 :repository-write-date720 :request-error721 :resource-error722 :resource-found-error723 :resource-not-found-error724 :revision725 :revision-invalid-error726 :revision-join727 :revision-not-found-error728 :round729 :run-program730 :run-program-exit-code731 :run-program-output732 :run-sparql733 :runtime-error734 :same-term735 :seconds736 :select737 :sequence-uri738 :service739 :service-join740 :sha1741 :sha224742 :sha256743 :sha384744 :sha512745 :slice746 :str747 :strafter748 :strbefore749 :stream-aggregate750 :stream-ask751 :stream-bindings752 :stream-construct753 :stream-describe754 :stream-diff755 :stream-distinct756 :stream-elementary-select757 :stream-exists758 :stream-extend759 :stream-filter760 :stream-group761 :stream-join762 :stream-leftjoin763 :stream-minus764 :stream-modify765 :stream-order766 :stream-project767 :stream-slice768 :string769 :string-concatenate770 :string-ends771 :string-length772 :string-starts773 :subjects774 :substring775 :substring-after776 :substring-before777 :task-authorization-error778 :table779 :temporal-attribute780 :then781 :time782 :time-zone783 :timeout-error784 :to-list785 :triple786 :triple-object787 :triple-predicate788 :triple-subject789 :tz790 :ucase791 :unary-exists792 :unary-minus793 :unary-plus794 :unix-now795 :unbound-prefix-error796 :undefined-variable-error797 :union798 :update799 :uuid800 :uuid-string801 :version-constraint802 :view-not-found-error803 :with-join-scope804 :with-task805 :with-open-repository806 :with-reference-dimensions807 :with-repository808 :with-task-environment809 :with-transaction810 :with-version-constraint811 :year812 :year-month-duration)813 (:documentation814 "This package comprises the names for SPARQL evaluation operators.815 These are the base operators to which spocq.a macro forms expand."))816 817 (defpackage :org.datagraph.spocq.implementation818 (:use :common-lisp819 :de.setf.utility820 :de.setf.utility.codecs821 #+sbcl :sb-cltl2)822 (:nicknames :spocq.i)823 ;; import the outpot operators to support delegating writer streams824 #+:amqp825 (:import-from :amqp.u826 #:stream-file-position)827 (:import-from :spocq.e828 :*dydra-cli-path*829 :account830 :cached-class831 :cached-object832 :cached-persistent-class833 :cached-persistent-object834 :call-with-new-task835 :call-with-task836 :call-with-task-environment837 :class-cache838 :import-limit839 :instance-identifier840 :instance-state841 :instance-store-repository-id842 :instance-store-revision843 :instance-store-graph844 :iri845 :iri-lexical-form846 :iri-equal847 :make-quad848 :make-sha1-digest849 :make-triple850 :persistent-class851 :persistent-object852 :quad853 :quad-graph854 :quad-object855 :quad-predicate856 :quad-subject857 :repository858 :repository-clear-graph859 :repository-id860 :repository-identifier861 :repository-revision-id862 :repository-revision-write-date863 :repository-statement-count864 :repository-statistics865 :repository-write-date866 :revision867 :run-sparql868 :triple869 :triple-object870 :triple-predicate871 :triple-subject872 :view-not-found-error873 :with-open-repository874 :with-repository875 :with-task876 :with-task-environment877 :with-transaction)878 879 (:export "IS-Var"880 :%copy-quad881 :%copy-tquad882 :%copy-tsiquad883 :%copy-tsoquad884 :%copy-tstquad885 :%print-quad886 :%quad-context887 :%quad-object888 :%quad-predicate889 :%quad-subject890 :%tquad-context891 :%tquad-object892 :%tquad-predicate893 :%tquad-subject894 :%tquad-time895 :%tsiquad-context896 :%tsiquad-object897 :%tsiquad-predicate898 :%tsiquad-subject899 :%tsiquad-uuid900 :%tsoquad-context901 :%tsoquad-object902 :%tsoquad-ordinal903 :%tsoquad-predicate904 :%tsoquad-subject905 :%tstquad-context906 :%tstquad-object907 :%tstquad-predicate908 :%tstquad-subject909 :%tstquad-time910 :*accounting-destination*911 :*agent*912 :*allow-blank-node-verb*913 :*base-iri*914 :*blank-node-package*915 :*build-revision*916 :*build-timestamp*917 :*catalog-root-pathname*918 :*configuration-pathname*919 :*construct-dimensions*920 :*dataset-graphs*921 :*dataset-source*922 :*disabled-repositories*923 :*dydra-cli-path*924 :*error-condition-channel*925 :*host-name*926 :*import-root-pathname*927 :*iri-package-names*928 :*iri-packages*929 :*management-thread*930 :*management-thread-interval*931 :*metadata*932 :*nondistinguished-marker-type*933 :*output-format.jsonld*934 :*pidfile-pathname*935 :*query*936 :*query-parser*937 :*rdf-string-length-maximum*938 :*repository*939 :*repository-id*940 :*request-content-type*941 :*response-content-type*942 :*response-header-types*943 :*run-state*944 :*service-name*945 :*service-request-count-limit*946 :*site-name*947 :*start-timestamp*948 :*store->spocq-term-registry*949 :*spocq->store-term-registry*950 :*syntax-package*951 :*task*952 :*task-id*953 :*task-indices*954 :*transaction*955 :*variable-package*956 :*variables*957 :*version*958 :*view-identifier*959 :access-authorized-p960 :account961 :agent-identifier962 :and-form-p963 :api-key964 :ask-form-p965 :base-iri966 :bgp-form-p967 :blank-node-prefix968 :blank-node-skolemize969 :cached-class970 :cached-object971 :cached-persistent-class972 :cached-persistent-object973 :call-with-new-task974 :call-with-task975 :call-with-task-environment976 :channel-get977 :channel-get-all978 :channel-put979 :class-cache980 :complete-output981 :compute-instance-model982 :compute-repository-id983 :compute-repository-revision984 :COMPUTE-REVISION-PREDICATE985 :compute-timemap986 :conditional-delete-file987 :configuration-parameter988 :cons-blank-node989 :cons-variable990 :constrain-resources991 :constrain-string-length992 :construct-form-p993 :construct-iri994 :construct-prefixed-name995 :construct-term996 :construct-uri-term997 :context998 :create-repository999 :default-context-term1000 :default-context-term-number-p1001 :delete-repository1002 :delete-uuid-p1003 :delete-view-definition1004 :describe-form1005 :describe-form-p1006 :describe-object-depth1007 :describe-sibject-depth1008 :distinguished-variable-p1009 :enable-interrupt1010 :exit-lisp1011 :expression-pattern-statements1012 :expression-projected-variables1013 :expression-triples1014 :expression-variables1015 :exprlist-form-p1016 :extend-form-p1017 :federation-mode1018 :filter-form-p1019 :filter-solution-field1020 :find-builtin-operator1021 :format-sparql-sse1022 :format-sparql-sse-expression1023 :format-sparql-sse-order1024 :format-sparql-sse-term1025 :generate-accounting-note1026 :get-registry1027 :get-timeline-location1028 :getarg1029 :graph1030 :graph-form-p1031 :identified-object1032 :import-limit1033 :initialize-spocq1034 :input-eof?1035 :input-reference1036 :insert-uuid-p1037 :instance-identifier1038 :instance-repository1039 :instance-state1040 :instance-store-graph1041 :instance-store-repository-id1042 :instance-store-revision1043 :intern-blank-node1044 :intern-iri1045 :intern-literal1046 :intern-plain-literal1047 :intern-spocq-term1048 :intern-uuid1049 :internal-view-repository1050 :iri1051 :iri-equal1052 :iri-lexical-form1053 :iri-p1054 :is-local-host1055 :is-STRING_LITERAL11056 :is-STRING_LITERAL21057 :is-STRING_LITERAL_LONG11058 :is-STRING_LITERAL_LONG21059 :is-arithmetic_aggregate_operator1060 :is-blank_node_label1061 :is-decimal1062 :is-decimal-string1063 :is-decimal_negative1064 :is-decimal_positive1065 :is-double1066 :is-double_negative1067 :is-double_positive1068 :is-file-url-namestring1069 :is-float-string1070 :is-http-url-namestring1071 :is-integer1072 :is-integer_negative1073 :is-integer_positive1074 :is-intger-string1075 :is-iri_namestring1076 :is-langtag1077 :is-pn_local1078 :is-pname_ln1079 :is-pname_ns1080 :is-uuid-string1081 :is-varname1082 :join-form-p1083 :json-member-value1084 :leftjoin-form-p1085 :library-path1086 :lmdb-quad-repository1087 :LMDB-BITEMPORAL-REPOSITORY1088 :lmdb-replicable-repository1089 :lmdb-repository1090 :lmdb-repository-revision1091 :lmdb-revisioned-repository1092 :lmdb-revisioned-revision1093 :LMDB-TEMPORAL-REPOSITORY1094 :lmdb-time-series-bitemporal-repository1095 :lmdb-time-series-quad-repository1096 :lmdb-time-series-temporal-repository1097 :lmdb-transaction1098 :lmdb-transaction-revision1099 :log-debug1100 :log-error1101 :log-info1102 :log-memory-usage1103 :log-notice1104 :log-stacktrace1105 :log-trace1106 :log-warn1107 :lookup-object-term-number1108 :make-and-property-path1109 :make-bounded-property-path1110 :make-inverted-property-path1111 :make-list-solution-field1112 :make-negated-property-path1113 :make-or-property-path1114 :make-plain-literal1115 :make-pool1116 :make-sequence-property-path1117 :make-sha1-digest1118 :make-uuid-vector1119 :make-v1-uuid-array1120 :make-v1-uuid-string1121 :make-view1122 :make-zero-length-property-path1123 :management-idle-handler1124 :map-registry1125 :map-tree1126 :materialized-repository-view1127 :maybe-exit-on-error1128 :memory-limit1129 :minus-form-p1130 :named-contexts-term1131 :namespace-bindings1132 :next-blank-node-index1133 :next-sequence-index1134 :next-variable-index1135 :not-form-p1136 :object1137 :object-term-number1138 :operation-read-only-p1139 :or-form-p1140 :parse-file-url-host-and-path1141 :parse-nquads1142 :parse-sparql1143 :parse-uri-scheme1144 :parse-view1145 :parse-view-identifier1146 :persistent-class1147 :persistent-object1148 :pipe-task1149 :position-uuid-vector1150 :position-uuid-vector-next1151 :position-uuid-vector-previous1152 :predicate1153 :prefix-namespace1154 :print-error-conditions1155 :project-form-p1156 :quad1157 :quad-form-p1158 :quad-graph1159 :quad-object1160 :quad-predicate1161 :quad-subject1162 :query1163 :query-graphs1164 :query-id1165 :query-patterns1166 :query-result-generator1167 :query-sparql-expression1168 :query-sse-expression1169 :query-threads1170 :query-transaction1171 :query-user-id1172 :query-variables1173 :rdfcache-lmdb-repository1174 :read-date-time ;; make #@ available to using packages 1175 :read-revision-identifier ;; make #! available to using packages 1176 :read-view-definition1177 :rem-registry1178 :repository1179 :repository-clear-graph1180 :repository-hdt-pathname1181 :repository-id1182 :repository-identifier1183 :repository-is-revisioned1184 :repository-lmdb-repository1185 :repository-lookup-object-term-number1186 :repository-object-term-number1187 :repository-pathname1188 :repository-pattern-match-p1189 :repository-revision-id1190 :repository-service-description1191 :repository-source-repository1192 :repository-statement-count1193 :repository-statistics1194 :repository-term-is-blank-node1195 :repository-term-is-iri1196 :repository-term-number-lang1197 :repository-term-number-object1198 :repository-term-number-object-list1199 :repository-view1200 :repository-write-date1201 :request-argument1202 :response-limit1203 :response-offset1204 :revision1205 :revision-after-p1206 :revision-before-p1207 :revision-coincident-p1208 :revision-id1209 :revision-ordinal1210 :REVISION-MAX-REVISION-ORDINAL1211 :revision-set-end1212 :revision-set-start1213 :revision-signature1214 :revision-transition-next1215 :revision-transition-previous1216 :revision-uri1217 :run-processing-threads1218 :run-program1219 :run-program-close1220 :run-program-exit-code1221 :run-program-input1222 :run-program-output1223 :run-program-wait1224 :run-sparql1225 :run-toplevel-loop1226 :select-form-p1227 :set-pragma1228 :set-uuid-state1229 :sigterm-handler1230 :solution-field-solutions1231 :solution-limit1232 :sparql-query-description1233 :statement-object1234 :statement-predicate1235 :statement-subject1236 :statement-terms1237 :stop-threads1238 :string-to-uuid1239 :string-to-uuid-vector1240 :subject1241 :sum-form-p1242 :system-agent1243 :task1244 :task-base-iri1245 :task-property1246 :task-repository1247 :task-revision1248 :temporal-timeline-location1249 :term-id1250 :term-lexical-form1251 :term-number-object1252 :time-limit1253 :timeline-location-date1254 :timeline-location-date-time1255 :timeline-location-day-time-duration1256 :timeline-location-time1257 :tmp-export-pathname1258 :tmp-import-pathname1259 :tokenize-sparql1260 :tquad1261 :transaction-revision1262 :transaction-timestamp1263 :triple-form-p1264 :tsiquad1265 :tsoquad1266 :tstquad1267 :undistinguished-variable1268 :union-form-p1269 :universal-time-date-time1270 :untokenize-sparql1271 :update-dataset-graphs1272 :uuid-vector1273 :uuid-vector-p1274 :v1-uuid-timestamp1275 :validate-storage-class1276 :variable-p1277 :view-dimensions1278 :view-identifier1279 :view-not-found-error1280 :view-query1281 :wild-quad-pattern-p1282 :with-command-line-configuration1283 :with-new-task1284 :with-open-repository1285 :with-open-transaction1286 :with-repository1287 :with-task1288 :with-task-environment1289 :with-transaction1290 :write-pid-file1291 :write-view-definition)1292 (:documentation1293 "The SPOCQ implementation package.1294 1295 It imports operators from the run-time (spocq.e), in particular for streams.1296 It also exports various operators and variables for use by other1297 implementation packages, such as the sparql parsers, the server and the lmdb1298 interface."))1299 1300 1301 ;; make these available for use in format control strings1302 (import '(spocq.i::format-sparql-sse1303 spocq.i::format-sparql-sse-term1304 spocq.i::format-sparql-sse-expression1305 spocq.i::format-sparql-sse-order)1306 :cl-user)1307 1308 (defpackage :org.datagraph.presentation-codec1309 (:nicknames :pre-codec)1310 (:documentation "The _home_ package for names of accessors to be active1311 in the resource presentation interface"))1312 1313 (defpackage :org.datagraph.store-codec1314 ;(:nicknames :per-codec)1315 (:documentation "The _home_ package for names of accessors to be active1316 in the resource persistence interface"))1317 1318 1319 (defpackage :spocq.s (:use )1320 (:documentation "The home package for constant SPARQL terminals."))1321 1322 (defpackage "?" (:use)1323 (:documentation "The package for query variable names.")1324 (:export "boolean"))1325 1326 ;;; support loading into cores with alternative naming1327 ;;; (rename-package :bgp :bgp (list :org.datagraph.spocq.bgp))1328 (defpackage :bgp1329 (:use )1330 (:nicknames :org.datagraph.spocq.bgp)1331 (:export :aggregate1332 :and1333 :and-sum-left1334 :ask1335 :bgp1336 :bindings1337 :construct1338 :describe1339 :diff1340 :distinct1341 :extend1342 :filter1343 :group1344 :index-match1345 :not1346 :null1347 :or1348 :order1349 :project1350 :quad1351 :quad-call1352 :quad-entail1353 :quad-path1354 :slice1355 :sum1356 :union1357 :xor))1358 1359 (defpackage :org.datagraph.spocq.output1360 (:nicknames :spocq.output)1361 (:use ))1362 1363 (loop for symbol being each external-symbol in :spocq.a1364 do (import symbol :spocq.output) (export symbol :spocq.output))1365 (loop for symbol being each external-symbol in :spocq.e1366 unless (find-symbol (string symbol) :spocq.output)1367 do (import symbol :spocq.output) (export symbol :spocq.output))1368 1369 ;;; eliminate dependency on de.setf.resource1370 1371 (unless (find-package :de.setf.resource)1372 (defpackage :de.setf.resource1373 (:use )1374 (:export :map-statments*1375 :add-statemnt*)))1376 1377 ;;; lmdb-based store1378 1379 (defpackage :org.datagraph.rdf.lmdb.implementation1380 (:nicknames :rlmdb.i)1381 (:use :common-lisp1382 :de.setf.utility1383 :de.setf.utility.codecs1384 #+sbcl :sb-cltl21385 :spocq.i)1386 )1387 1388 (defpackage :org.datagraph.rdf.lmdb1389 (:nicknames :rlmdb :shard)1390 (:use )1391 (:import-from :lmdb1392 :transaction-flags1393 )1394 (:import-from :spocq.i1395 :is-uuid-string1396 :temporal-timeline-location1397 :timeline-location-date-time1398 :timeline-location-day-time-duration1399 :graph1400 :object1401 :predicate1402 :subject1403 )1404 (:import-from :spocq1405 :date1406 :date-time1407 :duration1408 :make-uuid1409 :make-temporal-location1410 :temporal-location1411 :uuid)1412 (:import-from :rlmdb.i1413 rlmdb.i::+quad-database-names+1414 rlmdb.i::%shard-term-type1415 rlmdb.i::%shard-term-options1416 rlmdb.i::%shard-term-data1417 rlmdb.i::%shard-term-subtype-node-subtype1418 rlmdb.i::%shard-term-data-node-genid1419 rlmdb.i::%shard-term-data-node-gensym-prefix1420 rlmdb.i::%shard-term-data-node-gensym-suffix1421 rlmdb.i::%shard-term-data-node-label1422 rlmdb.i::%shard-term-data-node-label-offset1423 rlmdb.i::%shard-term-data-uri-string-offset1424 rlmdb.i::%shard-term-subtype-string-subtype1425 rlmdb.i::%shard-term-data-string-value-offset1426 rlmdb.i::%shard-term-data-string-language-offset1427 rlmdb.i::%shard-term-data-literal-value-offset1428 rlmdb.i::%shard-term-data-literal-datatype-offset1429 rlmdb.i::%shard-term-subtype-decimal-subtype1430 rlmdb.i::%shard-term-data-decimal-integer1431 rlmdb.i::%shard-term-data-decimal-fraction1432 rlmdb.i::%shard-term-data-boolean1433 rlmdb.i::%shard-term-data-integer1434 rlmdb.i::%shard-term-data-double1435 rlmdb.i::%shard-term-data-float1436 rlmdb.i::%shard-term-data-time1437 rlmdb.i::bitemporal-revision-log-record-timestamp-valid1438 rlmdb.i::database1439 rlmdb.i::foreign-nstring-to-lisp1440 rlmdb.i::quad1441 rlmdb.i::subject1442 rlmdb.i::predicate1443 rlmdb.i::object1444 rlmdb.i::context1445 rlmdb.i::get-metadata-property1446 rlmdb.i::is-revisioned1447 rlmdb.i::make-revision-record1448 rlmdb.i::make-metadata-record1449 rlmdb.i::make-revision-log-record1450 rlmdb.i::metadata-record-class1451 rlmdb.i::metadata-record-ordinal1452 rlmdb.i::metadata-record-timestamp1453 rlmdb.i::metadata-record-uuid1454 rlmdb.i::put-metadata-property1455 rlmdb.i::repository-environment1456 rlmdb.i::repository-temporal-predicates1457 rlmdb.i::repository-time-series-predicates1458 rlmdb.i::revision-log-record-flags1459 rlmdb.i::revision-log-record-inserted-count1460 rlmdb.i::revision-log-record-ordinal1461 rlmdb.i::revision-log-record-removed-count1462 rlmdb.i::revision-log-record-timestamp1463 rlmdb.i::revision-log-record-timestamp-begun1464 rlmdb.i::revision-log-record-uuid1465 rlmdb.i::revision-log-record-version1466 rlmdb.i::revision-log-record-visible-count1467 rlmdb.i::revision-record-ordinal1468 rlmdb.i::revision-record-timestamp1469 rlmdb.i::revision-record-timestamp-begun1470 rlmdb.i::revision-record-uuid1471 rlmdb.i::shard-term1472 rlmdb.i::shard-term-fetch1473 rlmdb.i::shard-term-node1474 rlmdb.i::term-id1475 rlmdb.i::term-record-value1476 rlmdb.i::transaction-repository)1477 (:export :+quad-database-names+1478 :*environment-class*1479 :*mapsize*1480 :*maxdbs*1481 :*max-readers*1482 :*repository-class*1483 :*all-context-number*1484 :*default-context-number*1485 :*named-context-number*1486 :*wildcard-term-number*1487 :%shard-term-type1488 :%shard-term-data1489 :%shard-term-options1490 :%shard-term-subtype-node-subtype1491 :%shard-term-data-node-genid1492 :%shard-term-data-node-gensym-prefix1493 :%shard-term-data-node-gensym-suffix1494 :%shard-term-data-node-label1495 :%shard-term-data-node-label-offset1496 :%shard-term-data-uri-string-offset1497 :%shard-term-subtype-string-subtype1498 :%shard-term-data-string-value-offset1499 :%shard-term-data-string-language-offset1500 :%shard-term-data-literal-value-offset1501 :%shard-term-data-literal-datatype-offset1502 :%shard-term-subtype-decimal-subtype1503 :%shard-term-data-decimal-integer1504 :%shard-term-data-decimal-fraction1505 :%shard-term-data-boolean1506 :%shard-term-data-integer1507 :%shard-term-data-double1508 :%shard-term-data-float1509 :%shard-term-data-time1510 :bitemporal-repository1511 :bitemporal-revision1512 :bitemporal-revision-log-record1513 :bitemporal-revision-log-record-timestamp-valid1514 :bitemporal-time-series-repository1515 :bitemporal-time-series-transaction1516 :bitemporal-transaction1517 :close-repository1518 :clear-repository1519 :context1520 :database1521 :date1522 :date-time1523 :decode-metadata1524 :diachronic-repository1525 :duration1526 :encode-metadata1527 :enter-transaction1528 :environment1529 :find-first-ordinal1530 :find-last-ordinal1531 :find-revision-info1532 :find-revision-ordinal1533 :find-revision-ordinal-interval1534 :find-revision-record1535 :find-revision-timestamp1536 :find-revision-uuid1537 :foreign-nstring-to-lisp1538 :get-metadata1539 :get-metadata-class1540 :get-metadata-ordinal1541 :get-metadata-record1542 :get-metadata-property1543 :get-metadata-storage-class1544 :get-metadata-timestamp1545 :get-metadata-uuid1546 :get-revision-list1547 :get-revision-log-record1548 :get-revision-ordinal1549 :get-revision-ordinals1550 :get-revision-record1551 :get-revision-records1552 :get-revision-timestamp1553 :get-revision-timestamps1554 :get-revision-uuid1555 :get-revision-uuids1556 :get-revision-records1557 :get-revision-log-records1558 :graph1559 :graph-term-number1560 :index-database1561 :intern-field1562 :intern-term1563 :intern-property-path1564 :is-revisioned1565 :is-uuid-string1566 :is-valid-revision-record1567 :lmdb-transaction1568 :map-bitemporal-statements1569 :map-context-numbers1570 :map-object-numbers1571 :map-predicate-numbers1572 :map-repository-events1573 :map-repository-statements1574 :map-repository-statements-filtered1575 :map-subject-numbers1576 :make-uuid1577 :meta-database1578 :make-temporal-location1579 :metadata-record1580 :metadata-record-class1581 :metadata-record-ordinal1582 :metadata-record-timestamp1583 :metadata-record-uuid1584 :object1585 :open-environment1586 :open-environment-databases1587 :open-repository1588 :parse-compound-revision-designator1589 :predicate1590 :put-metadata-class1591 :put-metadata-ordinal1592 :put-metadata-record1593 :put-metadata-property1594 :put-metadata1595 :put-metadata-storage-class1596 :put-metadata-timestamp1597 :put-metadata-uuid1598 :put-repository-metadata1599 :put-revision-record1600 :put-revision-ordinal1601 :quad1602 :quad-repository1603 :quad-transaction1604 :rdfcache-quad-repository1605 :rdfcache-revisioned-transaction1606 :rdfcache-quad-transaction1607 :rdfcache-transaction1608 :replicable-index-database1609 :replicable-repository1610 :replicable-repository-update-field1611 :repository1612 :repository-environment1613 :repository-database-names1614 :repository-databases1615 :repository-insert-field1616 :repository-insert-graph1617 :repository-insert-statement1618 :repository-metadata1619 :repository-metadata-ordinal1620 :repository-metadata-record1621 :repository-metadata-timestamp1622 :repository-metadata-uuid1623 :repository-mutate-field1624 :repository-temporal-predicate-p1625 :repository-temporal-predicate-id-p1626 :repository-temporal-predicates1627 :repository-time-series-predicate-p1628 :repository-time-series-predicate-id-p1629 :repository-time-series-predicates1630 :repository-write-graph1631 :replicable-database1632 :replicable-repository1633 :replicable-transaction1634 :revision-information1635 :revision-graph-database1636 :revision-ordinal-database1637 :revision-log-record1638 :revision-log-record-flags1639 :revision-log-record-inserted-count1640 :revision-log-record-ordinal1641 :revision-log-record-removed-count1642 :revision-log-record-timestamp1643 :revision-log-record-timestamp-begun1644 :revision-log-record-uuid1645 :revision-log-record-version1646 :revision-log-record-visible-count1647 :revision-metadata1648 :revision-record1649 :revision-record-begun-date-time1650 :revision-record-database1651 :revision-record-date-time1652 :revision-record-ordinal1653 :revision-record-timestamp1654 :revision-record-timestamp-begun1655 :revision-record-timestamp-valid1656 :revision-record-uuid1657 :revision-record-valid-date-time1658 :revision-records1659 :revision-sequence-database1660 :revisioned-rdfcache-quad-repository1661 :revisioned-repository1662 :revisioned-transaction1663 :shard-string-fetch1664 :shard-term-fetch1665 :shard-term-node1666 :string-database1667 :subject1668 :synchronic-repository1669 :temporal-index-database1670 :temporal-location1671 :temporal-repository1672 :temporal-timeline-location1673 :temporal-transaction1674 :term-id1675 :term-compare1676 :term-datatype-id1677 :term-elements1678 :term-iri-namestring1679 :term-is-blank-node1680 :term-is-iri1681 :term-is-literal1682 :term-language1683 :term-string1684 :term-timeline-location1685 :term-timestamp1686 :term-type1687 :term-number-value1688 :term-record-value1689 :term-value1690 :timeline-location-date-time1691 :timeline-location-day-time-duration1692 :time-series-bitemporal-repository1693 :time-series-quad-repository1694 :time-series-predicate-p1695 :time-series-predicate-id-p1696 :time-series-repository1697 :time-series-temporal-repository1698 :time-series-repository1699 :time-series-transaction1700 :transaction1701 :transaction-default-context-term-id1702 :transaction-end1703 :transaction-flags1704 :transaction-start1705 :transaction-timeout1706 :transaction-uuid1707 :uuid1708 :value-term-number1709 :with-open-repository1710 :with-string-database1711 )1712 )1713 ;;; extensions1714 1715 ;;; support loading into cores with alternative naming1716 ;;; (rename-package "http://dydra.com/sparql-functions#" "http://dydra.com/sparql-functions#" '("dydra" "http://dydra.com#"))1717 (defpackage "http://dydra.com/sparql-functions#"1718 (:nicknames "dydra" "http://dydra.com#")1719 (:use )1720 (:export "account-name"1721 "agent-id"1722 "agent-location"1723 "build-date-time"1724 "build-revision"1725 "build-timestamp"1726 "client-request-id"1727 "contains"1728 "date-time-timestamp"1729 "documentation"1730 "format"1731 "event-ordinal"1732 "event-timestamp"1733 "event-uuid"1734 "round"1735 "st_distance"1736 "st_point"1737 "st_x"1738 "st_y"1739 "iri-authority"1740 "iri-fragment"1741 "iri-host"1742 "iri-path"1743 "iri-password"1744 "iri-port"1745 "iri-query"1746 "iri-scheme"1747 "iri-user"1748 "iri-userinfo"1749 "query-uri"1750 "request-id"1751 "repository-name"1752 "repository-url"1753 "repository-revision-url"1754 "repository-revision-count"1755 "resolve-revision"1756 "revision"1757 "revision-date-time"1758 "revision-ordinal"1759 "revision-commit-timestamp"1760 "revision-begin-timestamp"1761 "revision-uri"1762 "revision-uuid"1763 "revision-uuid-node"1764 "revision-uuid-timestamp"1765 "revision-parent-uri"1766 "revision-predecessor"1767 "revision-successor"1768 "revision-signature"1769 "rewrite-mode"1770 "statement-id"1771 "statement-graph"1772 "statement-object"1773 "statement-predicate"1774 "statement-subject"1775 "term-number"1776 "timestamp-date-time"1777 "transaction-uri"1778 "transaction-uuid"1779 "urn-uuid-string"1780 "user-tag"1781 "version"1782 "version-end"1783 "version-end-date-time"1784 "version-end-ordinal"1785 "version-end-uuid"1786 "version-start"1787 "version-start-date-time"1788 "version-start-ordinal"1789 "version-start-uuid")1790 (:documentation "The home package for the names for extension functions"))1791 1792 (defpackage "http://www.w3.org/2005/xpath-functions#"1793 (:nicknames "xpath" "fn")1794 (:use )1795 (:export "abs"1796 "ceil"1797 "concat"1798 "contains"1799 "compare"1800 "dateTime"1801 "day-from-date"1802 "day-from-dateTime"1803 "days-from-duration"1804 "duration-in-seconds"1805 "duration-in-minutes"1806 "duration-in-hours"1807 "duration-in-days"1808 "duration-in-months"1809 "duration-in-years"1810 "encode-for-uri"1811 "ends-with"1812 "floor"1813 "format-date"1814 "format-dateTime"1815 "format-duration"1816 "format-time"1817 "hours-from-dateTime"1818 "hours-from-duration"1819 "hours-from-time"1820 "lower-case"1821 "matches"1822 "max"1823 "min"1824 "minutes-from-dateTime"1825 "minutes-from-duration"1826 "minutes-from-time"1827 "month-from-date"1828 "month-from-dateTime"1829 "months-from-duration"1830 "not"1831 "replace"1832 "round"1833 "seconds-from-dateTime"1834 "seconds-from-duration"1835 "seconds-from-time"1836 "starts-with"1837 "string-length"1838 "substring"1839 "substring-after"1840 "substring-before"1841 "timezone-from-date"1842 "timezone-from-dateTime"1843 "timezone-from-time"1844 "upper-case"1845 "year-from-date"1846 "year-from-dateTime"1847 "years-from-duration"1848 ))1849 1850 1851 (defpackage "http://jena.hpl.hp.com/ARQ/list#"1852 (:nicknames "arq")1853 (:use )1854 (:export "member"1855 ;; declaration only1856 "index"1857 "length")1858 (:documentation "declares Jena function properties.1859 Most are not defined.1860 See https://jena.apache.org/documentation/query/library-propfunc.html"))1861 (defpackage "http://jena.hpl.hp.com/ARQ/property#"1862 (:nicknames "apf")1863 (:export "textMatch"1864 ;; declaration only1865 "alt"1866 "assign"1867 "bag"1868 "blank"1869 "concat"1870 "seq"1871 "splitIRI"1872 "str"1873 "strSPlit"1874 "versionAQRQ" ; does not apply1875 "container"1876 "list"1877 )1878 (:documentation "declares Jena function properties.1879 Most are not defined.1880 See https://jena.apache.org/documentation/query/library-propfunc.html"))1881 ;;; (cl-user::add-iri-package "http://jena.hpl.hp.com/ARQ/property#")1882 1883 (defpackage arq.i1884 (:export :member))1885 1886 (defpackage arq.e1887 (:export :member))1888 1889 (defpackage "urn:dydra"1890 (:use )1891 ;; no, as it inteferes with store round tripe1892 ;; (:nicknames "rdfcache" "urn:rdfcache")1893 ;; '_' terms reproduce the column names already present in the mysql table1894 (:export "accessToken"1895 "accounts"1896 "agent_id"1897 "agent_location"1898 "algebra_operations"1899 "all"1900 "asynchronous"1901 "baseIRI"1902 "bytes_allocated"1903 "bytes_read"1904 "bytes_written"1905 "compact"1906 "context"1907 "default"1908 "defaultContextTerm"1909 "describeForm"1910 "describeObjectDepth"1911 "describeProperties"1912 "describeSubjectDepth"1913 "dynamicBinding"1914 "embed"1915 "encryptedPassword"1916 "error"1917 "explicit"1918 "external"1919 "event"1920 "false"1921 "federationMode"1922 "fragmentMetadata"1923 "host"1924 "ignore"1925 "internal"1926 "iri"1927 "keep"1928 "location"1929 "libraryPath"1930 "match_requests"1931 "match_responses"1932 "name"1933 "named"1934 "namedContextsTerm"1935 "none"1936 "parent-revision-id"1937 "parse_run_time"1938 "prefixes"1939 "privacySetting"1940 "provenanceRepositoryId"1941 "provenanceRepository"1942 "query_time"1943 "real_time"1944 "region"1945 "replace"1946 "repository"1947 "repositoryClass"1948 "requestContent"1949 "requestMemoryLimit"1950 "requestSolutionLimit"1951 "requestTimeLimit"1952 "responseContent"1953 "revisionId"1954 "run_time"1955 "service-description"1956 "service-functions"1957 "session_data"1958 "session_id"1959 "session_user"1960 "sessions"1961 "signature"1962 "simple-concise-bounded-description"1963 "simple-symmetric-concise-bounded-description"1964 "simple-inverse-concise-bounded-description"1965 "skolemize"1966 "skolemizePrefix"1967 "skolemize-insert"1968 "skolemize-export"1969 "solutions_constructed"1970 "solutions_processed"1971 "solutions_returned"1972 "some"1973 "strictVocabularyTerms"1974 "state"1975 "synchronous"1976 "timebundle"1977 "timemap"1978 "timestamp"1979 "true"1980 "undefinedVariableBehavior"1981 "user_id"1982 "users"1983 "warning"1984 "Account"1985 "Administrator"1986 "COMPLETE"1987 "Graph"1988 "Group"1989 "LocatedAgent"1990 "Manager"1991 "Query"1992 "Revision"1993 "Repository"1994 "RIFCore"1995 "SemanticAuthorization"1996 "TERMINATED"1997 "Transaction"1998 "User"1999 "View")2000 (:documentation "The home package for identifiers internal to the spocq-rdfcache operations.2001 These include graph designators for dataset specifications, provenance terms,2002 describe mode indicators, and accounting properties."))2003 2004 (defpackage "http://multimedialab.elis.ugent.be/users/samcoppe/ontologies/Premis/premis.owl#"2005 (:nicknames "premis")2006 (:use )2007 (:export "hasObjectRightsStatement"2008 "License"2009 "LicenseInformation"2010 "identifier"2011 "rightsGranted"2012 "startDate"2013 "termOfGrant"2014 "TermOfGrant"))2015 2016 (defpackage "http://www.w3.org/ns/prov#"2017 ;; rapper -o ntriples -i turtle ~/imports/prov-o.ttl - | fgrep 'http://www.w3.org/2000/01/rdf-schema#isDefinedBy' | fgrep 'http://www.w3.org/ns/prov#' | sed -e 's/>.*/"/' | sed -e 's/.*#/"/' | sort > prov-o-ttl.terms2018 ;; rapper -o ntriples -i rdfxml ~/imports/prov-o.rdf - | fgrep 'http://www.w3.org/2000/01/rdf-schema#isDefinedBy' | fgrep 'http://www.w3.org/ns/prov#' | sed -e 's/>.*/"/' | sed -e 's/.*#/"/' | sort > prov-o-rdf.terms2019 ;; this is based on the latter, BUT2020 ;; - remove duplicates2021 ;; removed spurios label, comment, n symbols2022 ;; added inverses, which did not appear as autonomous entries int he rdf documents2023 (:nicknames "prov")2024 (:use )2025 (:export "Activity"2026 "ActivityInfluence"2027 "Agent"2028 "AgentInfluence"2029 "Association"2030 "Attribution"2031 "Bundle"2032 "Collection"2033 "Communication"2034 "Delegation"2035 "Derivation"2036 "EmptyCollection"2037 "End"2038 "Entity"2039 "EntityInfluence"2040 "Generation"2041 "Influence"2042 "InstantaneousEvent"2043 "Invalidation"2044 "Location"2045 "Organization"2046 "Person"2047 "Plan"2048 "PrimarySource"2049 "Quotation"2050 "Revision"2051 "Role"2052 "SoftwareAgent"2053 "Start"2054 "Usage"2055 "actedOnBehalfOf"2056 "activity"2057 "activityOfInfluence"2058 "agent"2059 "agentOfInfluence"2060 "alternateOf"2061 "aq"2062 "atLocation"2063 "atTime"2064 "category"2065 "component"2066 "constraints"2067 "contributed"2068 "definition"2069 "dm"2070 "editorialNote"2071 "editorsDefinition"2072 "ended"2073 "endedAtTime"2074 "entity"2075 "entityOfInfluence"2076 "generalizationOf"2077 "generated"2078 "generatedAsDerivation"2079 "generatedAtTime"2080 "hadActivity"2081 "hadDelegate"2082 "hadDerivation"2083 "hadGeneration"2084 "hadInfluence"2085 "hadMember"2086 "hadPlan"2087 "hadPrimarySource"2088 "hadRevision"2089 "hadRole"2090 "hadUsage"2091 "hasAnchor"2092 "hasProvenance"2093 "hasProvenanceService"2094 "influenced"2095 "influencer"2096 "informed"2097 "invalidated"2098 "invalidatedAtTime"2099 "inverse"2100 "isDefinedBy"2101 "locationOf"2102 "order"2103 "qualifiedAssociation"2104 "qualifiedAssociationOf"2105 "qualifiedAttribution"2106 "qualifiedAttributionOf"2107 "qualifiedCommunication"2108 "qualifiedCommunicationOf"2109 "qualifiedDelegation"2110 "qualifiedDelegationOf"2111 "qualifiedDerivation"2112 "qualifiedDerivationOf"2113 "qualifiedEnd"2114 "qualifiedEndOf"2115 "qualifiedForm"2116 "qualifiedGeneration"2117 "qualifiedGenerationOf"2118 "qualifiedInfluence"2119 "qualifiedInfluenceOf"2120 "qualifiedInvalidation"2121 "qualifiedInvalidationOf"2122 "qualifiedPrimarySource"2123 "qualifiedQuotation"2124 "qualifiedQuotationOf"2125 "qualifiedRevision"2126 "qualifiedSourceOf"2127 "qualifiedStart"2128 "qualifiedUsage"2129 "qualifiedUsingActivity"2130 "quotedAs"2131 "revisedEntity"2132 "sharesDefinitionWith"2133 "specializationOf"2134 "started"2135 "startedAtTime"2136 "unqualifiedForm"2137 "used"2138 "value"2139 "wasActivityOfInfluence"2140 "wasAssociateFor"2141 "wasAssociatedWith"2142 "wasAttributedTo"2143 "wasDerivedFrom"2144 "wasEndedBy"2145 "wasGeneratedBy"2146 "wasInfluencedBy"2147 "wasInformedBy"2148 "wasInvalidatedBy"2149 "wasMemberOf"2150 "wasPlanOf"2151 "wasPrimarySourceOf"2152 "wasQuotedFrom"2153 "wasRevisionOf"2154 "wasRoleIn"2155 "wasStartedBy"2156 "wasUsedInDerivation"2157 "wasUsedBy"2158 ))2159 2160 (defpackage "http://www.w3.org/ns/sparql-service-description#"2161 (:use )2162 (:nicknames "sd")2163 (:export "endpoint"2164 "feature"2165 "defaultEntailmentRegime"2166 "entailmentRegime"2167 "defaultSupportedEntailmentProfile"2168 "supportedEntailmentProfile"2169 "extensionFunction"2170 "extensionAggregate"2171 "languageExtension"2172 "supportedLanguage"2173 "propertyFeature"2174 "defaultDataset"2175 "availableGraphs"2176 "resultFormat"2177 "inputFormat"2178 "defaultGraph"2179 "namedGraph"2180 "name"2181 "graph"2182 "server" ; sparqlscore2183 "testedDate" ; sparqlscore2184 "testedBy" ; sparqlscore2185 "Service"2186 "Feature"2187 "Language"2188 "Function"2189 "Index" ; added for internal statistics2190 "Aggregate"2191 "EntailmentRegime"2192 "EntailmentProfile"2193 "GraphCollection"2194 "Dataset"2195 "Graph"2196 "NamedGraph"2197 "SPARQL10Query"2198 "SPARQL11Query"2199 "SPARQL11Update"2200 "DereferencesURIs"2201 "UnionDefaultGraph"2202 "RequiresDataset"2203 "EmptyGraphs"2204 "BasicFederatedQuery"2205 "TextIndex"))2206 2207 (defpackage "http://rdfs.org/ns/void#"2208 (:use )2209 (:nicknames "void")2210 (:documentation "http://www.w3.org/TR/void/ and https://github.com/cygri/void/blob/master/rdfs/void.ttl")2211 (:export "Dataset"2212 "DatasetDescription"2213 "Linkset"2214 "TechnicalFeature"2215 "class"2216 "classes"2217 "classPartition"2218 "dataDump"2219 "distinctObjects"2220 "distinctSubjects"2221 "documents"2222 "entities"2223 "exampleResource"2224 "feature"2225 "inDataset"2226 "linkPredicate"2227 "Linkset"2228 "objectsTarget"2229 "openSearchDescription"2230 "properties"2231 "property"2232 "propertyPartition"2233 "rootResource"2234 "sparqlEndpoint"2235 "subjectsTarget"2236 "subset"2237 "target"2238 "TechnicalFeature"2239 "triples"2240 "uriLookupEndpoint"2241 "uriRegexPattern"2242 "uriSpace"2243 "vocabulary"))2244 2245 (defpackage "http://xmlns.com/foaf/0.1/"2246 (:use )2247 (:nicknames "foaf")2248 (:documentation 2249 "see http://xmlns.com/foaf/spec/20100809.html")2250 (:export "LabelProperty"2251 "Person"2252 "Agent"2253 "Document"2254 "Organization"2255 "Group"2256 "Agent"2257 "Project"2258 "Image"2259 "Document"2260 "PersonalProfileDocument"2261 "OnlineAccount"2262 "OnlineGamingAccount"2263 "OnlineEcommerceAccount"2264 "OnlineChatAccount"2265 "mbox"2266 "mbox_sha1sum"2267 "gender"2268 "geekcode"2269 "dnaChecksum"2270 "sha1"2271 "based_near"2272 "title"2273 "nick"2274 "jabberID"2275 "aimChatID"2276 "skypeID"2277 "icqChatID"2278 "yahooChatID"2279 "msnChatID"2280 "name"2281 "firstName"2282 "lastName"2283 "givenName"2284 "givenname"2285 "surname"2286 "family_name"2287 "familyName"2288 "phone"2289 "homepage"2290 "weblog"2291 "openid"2292 "tipjar"2293 "plan"2294 "made"2295 "maker"2296 "img"2297 "depiction"2298 "depicts"2299 "thumbnail"2300 "myersBriggs"2301 "workplaceHomepage"2302 "workInfoHomepage"2303 "schoolHomepage"2304 "knows"2305 "interest"2306 "topic_interest"2307 "publications"2308 "currentProject"2309 "pastProject"2310 "fundedBy"2311 "logo"2312 "topic"2313 "primaryTopic"2314 "focus"2315 "isPrimaryTopicOf"2316 "page"2317 "theme"2318 "account"2319 "holdsAccount"2320 "accountServiceHomepage"2321 "accountName"2322 "member"2323 "membershipClass"2324 "birthday"2325 "age"2326 "status"2327 ))2328 2329 (defpackage "http://rdfs.org/sioc/ns#"2330 (:use )2331 (:nicknames "sioc")2332 (:documentation2333 "The SIOC core ontology vocabulary terms.2334 see http://rdfs.org/sioc/ns2335 see http://rdfs.org/sioc/spec/")2336 (:export "Community"2337 "Container"2338 "Forum"2339 "Item"2340 "Post"2341 "Role"2342 "Space"2343 "Site"2344 "Thread"2345 "UserAccount"2346 "Usergroup"2347 "about"2348 "account_of"2349 "addressed_to"2350 "administrator_of"2351 "attachment"2352 "avatar"2353 "container_of"2354 "content"2355 "creator_of"2356 "earlier_version"2357 "email"2358 "email_sha1"2359 "embeds_knowledge"2360 "feed"2361 "follows"2362 "function_of"2363 "has_administrator"2364 "has_container"2365 "has_creator"2366 "has_discussion"2367 "has_function"2368 "has_host"2369 "has_member"2370 "has_moderator"2371 "has_modifier"2372 "has_owner"2373 "has_parent"2374 "has_reply"2375 "has_scope"2376 "has_space"2377 "has_subscriber"2378 "has_usergroup"2379 "host_of"2380 "id"2381 "ip_address"2382 "last_activity_date"2383 "last_item_date"2384 "last_reply_date"2385 "later_version"2386 "latest_version"2387 "link"2388 "links_to"2389 "member_of"2390 "moderator_of"2391 "modifier_of"2392 "name"2393 "next_by_date"2394 "next_version"2395 "note"2396 "num_authors"2397 "num_items"2398 "num_replies"2399 "num_threads"2400 "num_views"2401 "owner_of"2402 "parent_of"2403 "previous_by_date"2404 "previous_version"2405 "related_to"2406 "reply_of"2407 "scope_of"2408 "sibling"2409 "space_of"2410 "subscriber_of"2411 "topic"2412 "usergroup_of"2413 "User"2414 "title"2415 "content_encoded"2416 "created_at"2417 "description"2418 "first_name"2419 "group_of"2420 "has_group"2421 "has_part"2422 "last_name"2423 "modified_at"2424 "part_of"2425 "reference"2426 "subject"))2427 2428 (defpackage "http://www.w3.org/2002/07/owl#"2429 (:use )2430 (:nicknames "owl")2431 (:export "AllDifferent"2432 "AllDisjointClasses"2433 "AllDisjointProperties"2434 "allValuesFrom"2435 "annotatedProperty"2436 "annotatedSource"2437 "annotatedTarget"2438 "Annotation"2439 "AnnotationProperty"2440 "assertionProperty"2441 "AsymmetricProperty"2442 "Axiom"2443 "backwardCompatibleWith"2444 "bottomDataProperty"2445 "bottomObjectProperty"2446 "cardinality"2447 "Class"2448 "complementOf"2449 "DataRange"2450 "datatypeComplementOf"2451 "DatatypeProperty"2452 "deprecated"2453 "DeprecatedClass"2454 "DeprecatedProperty"2455 "differentFrom"2456 "disjointUnionOf"2457 "disjointWith"2458 "distinctMembers"2459 "equivalentClass"2460 "equivalentProperty"2461 "FunctionalProperty"2462 "hasKey"2463 "hasSelf"2464 "hasValue"2465 "imports"2466 "incompatibleWith"2467 "intersectionOf"2468 "InverseFunctionalProperty"2469 "inverseOf"2470 "IrreflexiveProperty"2471 "maxCardinality"2472 "maxQualifiedCardinality"2473 "members"2474 "minCardinality"2475 "minQualifiedCardinality"2476 "NamedIndividual"2477 "NegativePropertyAssertion"2478 "Nothing"2479 "ObjectProperty"2480 "onClass"2481 "onDataRange"2482 "onDatatype"2483 "oneOf"2484 "onProperty"2485 "onProperties"2486 "Ontology"2487 "OntologyProperty"2488 "priorVersion"2489 "propertyChainAxiom"2490 "propertyDisjointWith"2491 "qualifiedCardinality"2492 "ReflexiveProperty"2493 "Restriction"2494 "sameAs"2495 "someValuesFrom"2496 "sourceIndividual"2497 "SymmetricProperty"2498 "targetIndividual"2499 "targetValue"2500 "Thing"2501 "topDataProperty"2502 "topObjectProperty"2503 "TransitiveProperty"2504 "unionOf"2505 "versionInfo"2506 "versionIRI"2507 "withRestrictions"))2508 2509 (defpackage "http://www.w3.org/ns/auth/acl#"2510 ;; curl -s http://www.w3.org/ns/auth/acl | fgrep 'rdf:about=' | fgrep 'auth' | sed 's,.*#,",' | sed 's,">.*,",'2511 ;; alternatively2512 ;; curl -s http://www.w3.org/ns/auth/acl | egrep -o 'acl:\w+' | sort | uniq | sed 's/acl://'2513 (:use)2514 (:nicknames "acl")2515 (:documentation "see http://www.w3.org/wiki/WebAccessControl")2516 (:export "Access"2517 "Append"2518 "AuthenticatedAgent"2519 "Authorization"2520 "Control"2521 "Execute"2522 "Origin"2523 "Read"2524 "Write"2525 "accessControl"2526 "accessTo"2527 "accessToClass"2528 "agent"2529 "agentClass"2530 "agentGroup"2531 "default"2532 "defaultForNew"2533 "delegates"2534 "label"2535 "mode"2536 "noAccessTo"2537 "origin"2538 "owner"))2539 2540 (defpackage "http://www.mementoweb.org/terms/tb/"2541 (:use )2542 (:nicknames "memento")2543 (:export "covers"2544 "end"2545 "Memento"2546 "mementoFor"2547 "OriginalResource"2548 "Period"2549 "start"2550 "TimeBundle"2551 "TimeGate"2552 "timeGateFor"2553 "TimeMap"2554 "validOver"2555 ))2556 2557 (defpackage "http://www.openarchives.org/ore/terms/"2558 (:use )2559 (:nicknames "ore")2560 (:export "aggregates"2561 "AggregatedResource"2562 "Aggregation"2563 "describes"2564 "isAggregatedBy"2565 "isDescribedBy"2566 "lineage"2567 "Proxy"2568 "proxyFor"2569 "proxyIn"2570 "ResourceMap"2571 "similarTo"2572 ))2573 2574 2575 2576 (defpackage "http://lucene.apache.org"2577 (:use )2578 (:nicknames :lucene)2579 (:export "strends"2580 "strstarts"2581 "||"2582 "&&"2583 "="2584 "!="2585 "<"2586 ">"2587 "<="2588 ">="2589 ))2590 2591 (defpackage "http://www.w3.org/2003/01/geo/wgs84_pos#"2592 (:use )2593 (:nicknames "geo")2594 (:export "lat"2595 "long"2596 "SpatialThing"2597 "TemporalThing"2598 "Event"2599 "Point"2600 "time"2601 "location"2602 "alt"2603 "lat_long"))2604 2605 2606 (defpackage "http://www.w3.org/2005/xpath-functions/math#"2607 (:use )2608 (:nicknames "math.xpath")2609 (:documentation2610 "as per2611 http://www.w3.org/2005/xpath-functions/math/2612 http://www.w3.org/TR/xpath-functions-30/")2613 (:export "acos"2614 "asin"2615 "atan"2616 "atan2"2617 "cos"2618 "exp"2619 "exp10"2620 "log"2621 "log10"2622 "max"2623 "min"2624 "pi"2625 "pow"2626 "sin"2627 "sqrt"2628 "tan"))2629 2630 (defpackage "http://purl.org/dc/elements/1.1/"2631 (:use )2632 (:nicknames "dc")2633 (:export "contributor"2634 "coverage"2635 "creator"2636 "date"2637 "description"2638 "format"2639 "identifier"2640 "language"2641 "publisher"2642 "relation"2643 "rights"2644 "source"2645 "subject"2646 "title"2647 "type"))2648 2649 (defpackage "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"2650 (:use )2651 (:nicknames "xul")2652 (:export ))2653 2654 (defpackage "http://creativecommons.org/ns#"2655 (:use )2656 (:nicknames "cc")2657 (:export "legalcode"2658 "jurisdiction"2659 "useGuidelines"2660 "LesserCopyleft"2661 "attributionURL"2662 "morePermissions" 2663 "attributionName"2664 "HighIncomeNationUse"2665 "Sharing"2666 "Copyleft"2667 "deprecatedOn"2668 "Permission"2669 "SourceCode"2670 "permits"2671 "ShareAlike"2672 "Notice"2673 "Jurisdiction"2674 "DerivativeWorks"2675 "Work"2676 "Reproduction"2677 "Distribution"2678 "requires"2679 "CommercialUse"2680 "prohibits"2681 "Requirement"2682 "Prohibition"2683 "License"2684 "license"2685 "Attribution"))2686 2687 (defpackage "http://www.w3.org/2011/http-statusCodes#"2688 (:use)2689 (:nicknames "httpsc")2690 (:export "StatusCode1xx"2691 "StatusCode2xx"2692 "StatusCode3xx"2693 "StatusCode4xx"2694 "StatusCode5xx"2695 "Continue"2696 "SwitchingProtocols"2697 "Processing"2698 "OK"2699 "Created"2700 "Accepted"2701 "NonAuthoritativeInformation"2702 "NoContent"2703 "ResetContent"2704 "PartialContent"2705 "MultiStatus"2706 "IMUsed"2707 "MultipleChoices"2708 "MovedPermanently"2709 "Found"2710 "SeeOther"2711 "NotModified"2712 "UseProxy"2713 "Reserved"2714 "TemporaryRedirect"2715 "BadRequest"2716 "Unauthorized"2717 "PaymentRequired"2718 "Forbidden"2719 "NotFound"2720 "MethodNotAllowed"2721 "NotAcceptable"2722 "ProxyAuthenticationRequired"2723 "RequestTimeout"2724 "Conflict"2725 "Gone"2726 "LengthRequired"2727 "PreconditionFailed"2728 "RequestEntityTooLarge"2729 "RequestURITooLong"2730 "UnsupportedMediaType"2731 "RequestedRangeNotSatisfiable"2732 "ExpectationFailed"2733 "UnprocessableEntity"2734 "Locked"2735 "FailedDependency"2736 "UpgradeRequired"2737 "InternalServerError"2738 "NotImplemented"2739 "BadGateway"2740 "ServiceUnavailable"2741 "GatewayTimeout"2742 "HTTPVersionNotSupported"2743 "VariantAlsoNegotiates"2744 "InsufficientStorage"2745 "NotExtended"))2746 2747 2748 ;;; dawg manifest test packages2749 2750 (defpackage "http://www.w3.org/ns/earl#"2751 (:use )2752 (:nicknames "earl")2753 (:export "Assertion"2754 "assertedBy"2755 "automatic"2756 "cantTell"2757 "test"2758 "outcome"2759 "passed"2760 "failed"2761 "mode"2762 "inapplicable"2763 "result"2764 "subject"2765 "TestResult"2766 "untested"))2767 2768 (defpackage "http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#"2769 (:use )2770 (:nicknames "mf")2771 (:export "ArithmeticTypeConservation"2772 "ArithmeticTypePromotion"2773 "ClosedModel"2774 "CSVResultFormatTest"2775 "BlankNodeLabelScopeIsDocument"2776 "BlankNodeLabelScopeIsGraph"2777 "DereferenceGraphURI"2778 "GraphStoreProtocolTest"2779 "IllFormedLiterals"2780 "KnownTypesDefault2Neq"2781 "LangTagAwareness"2782 "LaxCardinality"2783 "LiteralLexicalForms"2784 "LiteralValues"2785 "Manifest"2786 "ManifestEntry"2787 "NegativeSyntaxTest"2788 "NegativeSyntaxTest11"2789 "NegativeUpdateSyntaxTest11"2790 "Notable"2791 "PartialModel"2792 "ParserEnforcesSemantics"2793 "PositiveSyntaxTest"2794 "PositiveSyntaxTest11"2795 "PositiveUpdateSyntaxTest11"2796 "ProtocolTest"2797 "Requirement"2798 "ResultCardinality"2799 "QueryEvaluationTest"2800 "UpdateEvaluationTest"2801 "ServiceDescriptionTest"2802 "SPARQLScriptingTest"2803 "StringSimpleLiteralCmp"2804 "TestStatus"2805 "UndefinedVariablesAreInvalid"2806 "UndefinedVariablesAreUnbound"2807 "XsdDateOperations"2808 "accepted"2809 "action"2810 "conformanceRequirement"2811 "description"2812 "entries"2813 "feature"2814 "include"2815 "includedSpecifications"2816 "name"2817 "notable"2818 "proposed"2819 "rejected"2820 "requires"2821 "result"2822 "resultCardinality"))2823 2824 (defpackage "http://www.w3.org/2001/sw/DataAccess/tests/test-dawg#"2825 (:use )2826 (:nicknames "dawgt")2827 (:export "Approved"2828 "NotClassified"2829 "Obsoleted"2830 "Pending"2831 "Proposed"2832 "Rejected"2833 "ResultBoolean"2834 "ResultForm"2835 "ResultGraph"2836 "ResultSet"2837 "Status"2838 "Withdrawn"2839 "approval"2840 "approvedBy"2841 "description"2842 "issue"2843 "proposedBy"2844 "resultForm"2845 "status"2846 "warning"2847 ))2848 2849 (defpackage "http://www.w3.org/2001/sw/DataAccess/tests/test-query#"2850 (:use )2851 (:nicknames "qt")2852 (:export "QueryAsk"2853 "QueryConstruct"2854 "QueryDescribe"2855 "QueryForm"2856 "QuerySelect"2857 "QueryTest"2858 "data"2859 "endpoint"2860 "graphData"2861 "query"2862 "queryForm"2863 "repository"2864 "serviceData"))2865 2866 (defpackage "http://www.w3.org/2009/sparql/tests/test-update#"2867 (:use )2868 (:nicknames "ut")2869 (:export "arguments"2870 "data"2871 "graph"2872 "graphData"2873 "query"2874 "repository"2875 "request"2876 "result"2877 "success"))2878 2879 2880 2881 ;;;2882 ;;; ssl packages2883 2884 (eval-when (:compile-toplevel :load-toplevel :execute)2885 2886 (loop for symbol in '(_::request-content _::request-content-type _::request-repository2887 _::response-content _::response-content-type2888 _::ontology-repository)2889 do (export symbol "_"))2890 )2891 2892 (defpackage "http://dydra.com/schema/ssl#"2893 (:use )2894 (:nicknames "ssl")2895 (:export "alternative" "configuration" "consequent" "dataset" "destination"2896 "location" "media-type" "method" "mode" "name" "projection"2897 "request-media-type" "response-media-type"2898 "source" "steps" "task" "transaction" "value"2899 "Abort"2900 "Begin"2901 "Bind"2902 "Commit"2903 "Compose"2904 "Composition"2905 "Conditional"2906 "Constrain"2907 "Dataset"2908 "Decode"2909 "Encode"2910 "End"2911 "For"2912 "Loop"2913 "Matcher"2914 "Notify"2915 "Operation"2916 "Project"2917 "Request"2918 "Query"2919 "Update"2920 "Task"2921 "Return")2922 (:documentation "The SPOCQ package comprises the API operators for the execution plan interpreter."))2923 2924 2925 (defpackage "http://www.iana.org/assignments/media-types/"2926 (:use )2927 (:nicknames "mime")2928 (:export "application/json"2929 "application/pdf"2930 "application/rtf"2931 "application/sgml"2932 "application/sparql-query"2933 "application/sparql-results"2934 "application/sparql-results+json"2935 "application/sparql-results+xml"2936 "application/sql"2937 "application/xml"2938 "image/jpeg"2939 "image/png"2940 "image/tiff"2941 "text/csv"2942 "text/html"2943 "text/plain"2944 "text/tab-separated-values"2945 ))2946 2947 2948 (defpackage "http://www.w3.org/2011/http#"2949 (:nicknames "http")2950 (:export "absolutePath"2951 "absoluteURI"2952 "authority"2953 "body"2954 "Connection"2955 "connectionAuthority"2956 "elementName"2957 "elementValue"2958 "EntityHeader"2959 "fieldName"2960 "fieldValue"2961 "GeneralHeader"2962 "hdrName"2963 "HeaderElement"2964 "HeaderName"2965 "headerElements"2966 "headers"2967 "httpVersion"2968 "Message"2969 "MessageHeader"2970 "Method"2971 "methodName"2972 "mthd"2973 "Parameter"2974 "paramName"2975 "params"2976 "paramValue"2977 "reasonPhrase"2978 "Request"2979 "RequestHeader"2980 "requestURI"2981 "requests"2982 "Response"2983 "ResponseHeader"2984 "resp"2985 "sc"2986 "StatusCode"2987 "statusCodeNumber"2988 "statusCodeValue")2989 (:documentation "See http://www.w3.org/TR/HTTP-in-RDF10/"))2990 2991 2992 (defpackage "http://www.w3.org/2011/http-headers#"2993 (:nicknames "http-headers")2994 (:export "accept"2995 "content-length"2996 "content-type"2997 "host"2998 "transfer-encoding"2999 "user-agent"3000 "vary"))3001 3002 3003 (defpackage :org.datagraph.sparql-scripting-language.runtime3004 (:use )3005 (:nicknames :sslr)3006 (:export :*class.function-signature*3007 :*code*3008 :*stack*3009 :*environment*3010 :bind3011 :boundp3012 :call3013 :closure3014 :code3015 :continuation3016 :do-field3017 :environment3018 :eval3019 :execute3020 :first3021 :function3022 :function-code-parameter-count3023 :function-code-parameters3024 :function-definition3025 :function-designator3026 :function-designator-p3027 :function-keyword-parameter-count3028 :function-keyword-parameters3029 :function-required-parameter-count3030 :function-required-parameters3031 :function-signature3032 :function-value-count3033 :function-values3034 :make-function-signature3035 :map-field3036 :pop3037 :pop-code3038 :push3039 :push-code3040 :rest3041 :run3042 :set3043 :stack3044 :symbol-value3045 :true3046 ))3047 3048 (defpackage :org.datagraph.sparql-scripting-language3049 (:use )3050 (:nicknames :ssl)3051 (:import-from :sslr3052 :*code*3053 :*environment*3054 :*stack*)3055 (:import-from :spocq.i3056 :*transaction*3057 :*task*3058 :*repository*)3059 (:export :*code*3060 :*transaction*3061 :*task*3062 :*repository*3063 :*stack*3064 :*environment*3065 :and3066 :apply3067 :bind3068 :call3069 :call-with-state3070 :code3071 :configure3072 :cons3073 :continue3074 :continuation3075 :defword3076 :drop3077 :dup3078 :environment3079 :execute3080 :eval3081 :first3082 :for3083 :for-every3084 :for-some3085 :if3086 :nip3087 :not3088 :or3089 :project3090 :pop3091 :push3092 :rest3093 :run3094 :set3095 :stack3096 :state3097 :state-stack3098 :state-code3099 :state-environment3100 :swap3101 :thread3102 :true3103 :while3104 :with-state3105 :word3106 :xword3107 ))3108 3109 (defpackage "%"3110 (:use )3111 (:export "http://www.w3.org/2001/XMLSchema#string"3112 "http://www.w3.org/2001/XMLSchema#boolean"3113 "http://www.w3.org/2001/XMLSchema#byte"3114 "http://www.w3.org/2001/XMLSchema#decimal"3115 "http://www.w3.org/2001/XMLSchema#double"3116 "http://www.w3.org/2001/XMLSchema#float"3117 "http://www.w3.org/2001/XMLSchema#int"3118 "http://www.w3.org/2001/XMLSchema#integer"3119 "http://www.w3.org/2001/XMLSchema#nonNegativeInteger"3120 "http://www.w3.org/2001/XMLSchema#nonPositiveInteger"3121 "http://www.w3.org/2001/XMLSchema#negativeInteger"3122 "http://www.w3.org/2001/XMLSchema#positiveInteger"3123 "http://www.w3.org/2001/XMLSchema#short"3124 "http://www.w3.org/2001/XMLSchema#unsignedByte"3125 "http://www.w3.org/2001/XMLSchema#unsignedInt"3126 "http://www.w3.org/2001/XMLSchema#unsignedShort"3127 "http://www.w3.org/2001/XMLSchema#unsignedLong"))3128 (loop for var being each external-symbol of (find-package "%")3129 do (proclaim `(special ,var)))3130 3131 (defpackage "http://www.w3.org/ns/hydra/core#"3132 (:use )3133 (:nicknames :hydra)3134 (:export3135 "ApiDescription"3136 "ApiDocumentation"3137 "BasicRepresentation"3138 "Class"3139 "Collection"3140 "Error"3141 "ExplicitRepresentation"3142 "IriTemplate"3143 "IriTemplateMapping"3144 "Link"3145 "Operation"3146 "PartialCollectionView"3147 "Resource"3148 "Rfc6570Template"3149 "Status"3150 "SupportedProperty"3151 "TemplatedLink"3152 "VariableRepresentation"3153 "apiDocumentation"3154 "cc"3155 "cc:attributionURL"3156 "cc:license"3157 "collection"3158 "comment"3159 "dc"3160 "defines"3161 "description"3162 "domain"3163 "domainIncludes"3164 "entrypoint"3165 "expects"3166 "expectsHeader"3167 "first"3168 "freetextQuery"3169 "hydra"3170 "label"3171 "last"3172 "limit"3173 "manages"3174 "mapping"3175 "member"3176 "method"3177 "next"3178 "object"3179 "offset"3180 "operation"3181 "owl"3182 "pageIndex"3183 "pageReference"3184 "possibleStatus"3185 "preferredPrefix"3186 "previous"3187 "property"3188 "range"3189 "rdf"3190 "rdfs"3191 "readable"3192 "required"3193 "returns"3194 "returnsHeader"3195 "schema"3196 "search"3197 "seeAlso"3198 "statusCode"3199 "subClassOf"3200 "subPropertyOf"3201 "subject"3202 "supportedClass"3203 "supportedOperation"3204 "supportedProperty"3205 "template"3206 "title"3207 "totalItems"3208 "variable"3209 "variableRepresentation"3210 "view"3211 "vs"3212 "writeable"3213 "xsd"3214 3215 ;; additions3216 "DydraHTTPView"3217 "HTTPView"3218 "HydraHTTPView"3219 "ODBCView"3220 "PostgresView"))3221 3222 (DEFPACKAGE "http://www.w3.org/ns/activitystreams#"3223 (:use )3224 (:nicknames "as")3225 (:EXPORT "Accept"3226 "Activity"3227 "Add"3228 "Announce"3229 "Application"3230 "Arrive"3231 "Article"3232 "Audio"3233 "Block"3234 "Collection"3235 "CollectionPage"3236 "Create"3237 "Delete"3238 "Dislike"3239 "Document"3240 "Event"3241 "Flag"3242 "Follow"3243 "Group"3244 "Ignore"3245 "Image"3246 "IntransitiveActivity"3247 "Invite"3248 "Join"3249 "Leave"3250 "Like"3251 "Link"3252 "Listen"3253 "Mention"3254 "Move"3255 "Note"3256 "Object"3257 "Offer"3258 "OrderedCollection"3259 "OrderedCollectionPage"3260 "OrderedItems"3261 "Organization"3262 "Page"3263 "Person"3264 "Place"3265 "Profile"3266 "Question"3267 "Read"3268 "Reject"3269 "Relationship"3270 "Remove"3271 "Service"3272 "TentativeAccept"3273 "TentativeReject"3274 "Tombstone"3275 "Travel"3276 "Undo"3277 "Update"3278 "Video"3279 "View"3280 "accuracy"3281 "actor"3282 "altitude"3283 "anyOf"3284 "attachment"3285 "attachments"3286 "attributedTo"3287 "audience"3288 "author"3289 "bcc"3290 "bto"3291 "cc"3292 "content"3293 "context"3294 "current"3295 "deleted"3296 "describes"3297 "downstreamDuplicates"3298 "duration"3299 "endTime"3300 "first"3301 "formerType"3302 "generator"3303 "height"3304 "href"3305 "hreflang"3306 "icon"3307 "id"3308 "image"3309 "inReplyTo"3310 "instrument"3311 "items"3312 "last"3313 "latitude"3314 "location"3315 "longitude"3316 "mediaType"3317 "name"3318 "next"3319 "object"3320 "objectType"3321 "oneOf"3322 "origin"3323 "partOf"3324 "prev"3325 "preview"3326 "provider"3327 "published"3328 "radius"3329 "rating"3330 "rel"3331 "relationship"3332 "replies"3333 "result"3334 "startIndex"3335 "startTime"3336 "subject"3337 "summary"3338 "tag"3339 "tags"3340 "target"3341 "to"3342 "totalItems"3343 "units"3344 "updated"3345 "upstreamDuplicates"3346 "url"3347 "verb"3348 "width"))3349 3350 (DEFPACKAGE "http://www.w3.org/2011/http-methods#"3351 (:use )3352 (:nicknames "mthd")3353 (:EXPORT "CONNECT"3354 "DELETE"3355 "GET"3356 "HEAD"3357 "OPTIONS"3358 "PATCH"3359 "POST"3360 "PUT"3361 "TRACE"))3362 3363 (modpackage "http://www.w3.org/2006/time#"3364 (:export "intervalIncludedBy"3365 "intervalIncludes"))3366 3367 3368 (defpackage "http://www.w3.org/ns/dcat#"3369 (:nicknames "dcat")3370 (:export "Catalog"3371 "Dataset"3372 "Distribution"3373 "Feed"3374 "WebService"3375 "CatalogRecord"3376 "Download"3377 "dataset"3378 "distribution"3379 "landingPage"3380 "mediaType"3381 "byteSize"3382 "accessURL"3383 "theme"3384 "downloadURL"3385 "bytes"3386 "keyword"3387 "themeTaxonomy"3388 "record"3389 "contactPoint"3390 "granularity"3391 "dataQuality"3392 "size"3393 "dataDictionary"))3394 ;;; (cl-user::add-iri-package "http://www.w3.org/ns/dcat#")3395 3396 3397 ;; n3 minimal3398 (defpackage "http://www.w3.org/2000/10/swap/log"3399 (:nicknames "log")3400 (:export "implies"3401 "antecedent"3402 "consequent"))3403 3404 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3405 3406 (eval-when (:compile-toplevel :load-toplevel :execute)3407 (defparameter spocq.i:*iri-package-names*3408 '("http://www.w3.org/2001/XMLSchema"3409 "http://www.w3.org/2001/XMLSchema-datatypes"3410 "http://www.w3.org/2003/01/geo/wgs84_pos#"3411 "http://www.w3.org/1999/02/22-rdf-syntax-ns#"3412 "http://www.w3.org/2000/01/rdf-schema#"3413 "http://www.w3.org/2006/time#" ; add for temporal intervals3414 "http://xmlns.com/foaf/0.1/"3415 "http://www.w3.org/ns/auth/acl#"3416 "http://www.w3.org/ns/dcat#"3417 "http://rdfs.org/sioc/ns#"3418 "http://dydra.com#"3419 ;; ssl extensions3420 "http://dydra.com/schema/ssl#"3421 "http://www.iana.org/assignments/media-types/"3422 ;; ARQ extensions3423 "http://jena.hpl.hp.com/ARQ/list#"3424 "http://jena.hpl.hp.com/ARQ/property#"3425 ;; rdfcache terms3426 "urn:dydra"3427 ;; service-description terms3428 "http://www.w3.org/ns/sparql-service-description#"3429 "http://rdfs.org/ns/void#"3430 ;; provenance3431 "http://www.w3.org/ns/prov#"3432 "http://multimedialab.elis.ugent.be/users/samcoppe/ontologies/Premis/premis.owl#"3433 "http://www.w3.org/2002/07/owl#"3434 "http://www.mementoweb.org/terms/tb/"3435 "http://www.openarchives.org/ore/terms/"3436 "http://www.w3.org/2005/xpath-functions#"3437 "http://www.w3.org/2005/xpath-functions/math#"3438 "http://purl.org/dc/elements/1.1/"3439 "http://creativecommons.org/ns#"3440 "http://www.w3.org/2011/http-statusCodes#"3441 "http://www.w3.org/ns/earl#"3442 "http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#"3443 "http://www.w3.org/2001/sw/DataAccess/tests/test-dawg#"3444 "http://www.w3.org/2001/sw/DataAccess/tests/test-query#"3445 "http://www.w3.org/2009/sparql/tests/test-update#"3446 "http://www.w3.org/2011/http#"3447 "http://www.w3.org/2011/http-headers#"3448 "http://www.w3.org/ns/hydra/core#"3449 "http://www.w3.org/ns/activitystreams#"3450 "http://www.w3.org/2011/http-methods#"3451 )))3452 3453 (eval-when (:compile-toplevel :load-toplevel :execute)3454 (dolist (name '("IRI" "blankNode"))3455 (export (intern name '"rdf") '"rdf")))3456 3457 (eval-when (:compile-toplevel :load-toplevel :execute)3458 (setq spocq.i:*iri-package-names* (sort spocq.i:*iri-package-names* #'> :key 'length))3459 (defparameter spocq.i:*iri-packages* 3460 (mapcar #'(lambda (name) (or (find-package name)3461 (cerror "continue without it" "IRI package not found: ~s." name)))3462 spocq.i:*iri-package-names*)3463 "A list of the packages which represent RDF vocabularies. Each symbol in such a package3464 represents a respective IRI in the vocabulary. The SPARQL parser recognizes such cases3465 and interns them as symbols rather than as spocq:iri instances. This permits to implement3466 built-in and extension operations as native function calls and to represent the expressions as simple3467 s-expressions."))3468 3469 3470 (eval-when (:compile-toplevel :load-toplevel :execute)3471 (flet ((define-package-keywords (package)3472 (eval `(progn ,@(loop for key being each symbol of package3473 unless (keywordp key)3474 collect `(defconstant ,key ',key))))))3475 (loop for package in spocq.i:*iri-packages* do (define-package-keywords package))))3476 3477 3478 (defun sort-iri-package-names ()3479 (setq spocq.i:*iri-package-names* (sort spocq.i:*iri-package-names* #'> :key 'length))3480 (setq spocq.i:*iri-packages*3481 (mapcar #'(lambda (name) (or (find-package name)3482 (cerror "continue without it" "IRI package not found: ~s." name)))3483 spocq.i:*iri-package-names*)))3484 3485 (defun add-iri-package (package-name)3486 (flet ((define-package-keywords (package)3487 (eval `(progn ,@(loop for key being each symbol of package3488 unless (keywordp key)3489 collect `(defconstant ,key ',key))))))3490 (pushnew package-name spocq.i:*iri-package-names* :test 'equalp)3491 (sort-iri-package-names)3492 (setq spocq.i:*iri-packages* 3493 (mapcar #'(lambda (name) (or (find-package name)3494 (cerror "continue without it" "IRI package not found: ~s." name)))3495 spocq.i:*iri-package-names*))3496 (let ((package (find-package package-name)))3497 (define-package-keywords package)3498 package)))3499 ;;; (initialize-interned-terms )3500 3501 #|3502 extracting a package from an owl document:3503 - import it into a repository3504 - extract the subjects3505 (test-sparql "select distinct ?s3506 where {3507 ?s ?p ?o .3508 filter (datatype(?s) = <http://www.w3.org/2001/XMLSchema#anyURI>)3509 }3510 " :repository-id "schema/activitystreams")3511 - transform them into keywords3512 - construct the package definition3513 |#3514 3515 (defun derive-package-definition (repository namespace-name)3516 (let* ((subjects (spocq.i::test-sparql "select distinct ?s3517 where {3518 ?s ?p ?o .3519 filter (datatype(?s) = <http://www.w3.org/2001/XMLSchema#anyURI>)3520 }3521 " :repository-id repository))3522 (names (loop with prefix-length = (length namespace-name)3523 for (iri) in subjects3524 for lexical-form = (spocq.i::iri-lexical-form iri)3525 when (and (> (length lexical-form) prefix-length)3526 (string-equal namespace-name lexical-form :end2 prefix-length))3527 collect (subseq lexical-form prefix-length))))3528 `(defpackage ,namespace-name3529 (:export ,@(sort names #'string<)))))3530 ;;; (derive-package-definition "schema/activitystreams" "http://www.w3.org/ns/activitystreams#")3531 ;;; (derive-package-definition "schema/httpmethods" "http://www.w3.org/2011/http-methods#")3532 3533 3534 (defun compute-owl-package-definition (repository-id namespace-name)3535 "extract a package definition from a an owl description"3536 (let* ((subjects (spocq.i::test-sparql "select distinct ?s3537 where {3538 { ?s a rdfs:Class . }3539 union3540 { ?s a rdf:Property . }3541 union3542 { ?s a rdf:Property . }3543 }"3544 :repository-id repository-id3545 )))3546 `(defpackage ,namespace-name3547 (:export ,@(loop with length = (length namespace-name)3548 for (subject) in subjects3549 for subject-lexical-form = (spocq.i::iri-lexical-form subject)3550 for local-part = (subseq subject-lexical-form length)3551 collect local-part)))))3552 ;;; (compute-owl-package-definition "schema/dcat" "http://www.w3.org/ns/dcat#")3553 #+(or)3554 (3555 (test-sparql "select * from <urn:dydra:all> where {?s ?P <https://spec.edmcouncil.org/fibo/ontology/FBC/FinancialInstruments/InstrumentPricing/BidPrice>}"3556 :repository-id "schema/fibo")3557 (test-sparql "select * from <urn:dydra:all> where {<https://spec.edmcouncil.org/fibo/ontology/FBC/FinancialInstruments/InstrumentPricing/BidPrice> ?P ?o}"3558 :repository-id "schema/fibo")3559 )3560 3561 (defun compute-owl-package-definitions (repository-id &key (separator #\/) (namespace-bindings ()))3562 "extract multiple package definitions from a an owl description.3563 use the given separator to separate the namespace name from the local part.3564 return a list of package definitions"3565 (let* ((subjects (spocq.i::test-sparql "select distinct ?s3566 from <urn:dydra:all>3567 where {3568 { ?s a rdfs:Class . }3569 union3570 { ?s a rdf:Property . }3571 union3572 { ?s a <http://www.w3.org/2002/07/owl#Class> }3573 union3574 { ?s a <http://www.w3.org/2002/07/owl#DatatypeProperty> }3575 union3576 { ?s a <http://www.w3.org/2002/07/owl#ObjectProperty> }3577 }"3578 :repository-id repository-id3579 ))3580 (collections (make-hash-table :test 'equal)))3581 ;(print (length subjects))3582 (loop for (subject) in (remove-if #'SPOCQ:BLANK-NODE-P subjects :key #'first) ;; skip anonymous owl composite classes3583 for subject-lexical-form = (spocq.i::iri-lexical-form subject)3584 for split-position = (position separator subject-lexical-form :from-end t)3585 when split-position3586 do (push (subseq subject-lexical-form (1+ split-position))3587 (gethash (subseq subject-lexical-form 0 (1+ split-position))3588 collections)))3589 `(progn3590 ,@(sort (loop for namespace-name being each hash-key of collections3591 using (hash-value names)3592 for nickname = (first (rassoc namespace-name namespace-bindings :test #'string-equal))3593 collect `(defpackage ,namespace-name3594 ,@(when nickname `((:nicknames ,nickname)))3595 (:export ,@(sort names #'string-lessp))))3596 #'string-lessp3597 :key #'second))))3598 3599 3600 (defun write-jsonld-context (package &key (prefix (or (first (package-nicknames package))3601 (error "prefix is required")))3602 (stream *standard-output*))3603 (let* ((package-name (package-name package))3604 (entries (loop for symbol being each external-symbol of package3605 for symbol-name = (symbol-name symbol)3606 collect `(,(concatenate 'string prefix ":" symbol-name) .3607 (("@type" . "@id")3608 ("@id" . ,(concatenate 'string package-name symbol-name))))))3609 (definition `((,prefix . ,package-name) ,@entries)))3610 (pprint definition)3611 (format-json stream definition)))3612 #+(or)3613 (3614 (test-sparql "describe <_:f50c20a6-6aee-4302-a55b-27edefbb654cb5> from <urn:dydra:all>" :repository-id "schema/fibo")3615 (defparameter *fibo-namespaces*3616 '(("fibo-be-fct-pub" . "https://spec.edmcouncil.org/fibo/ontology/BE/FunctionalEntities/Publishers/")3617 ("fibo-fbc-fct-mkt" . "https://spec.edmcouncil.org/fibo/ontology/FBC/FunctionalEntities/Markets/")3618 ("fibo-fbc-fi-fi" . "https://spec.edmcouncil.org/fibo/ontology/FBC/FinancialInstruments/FinancialInstruments/")3619 ("fibo-fbc-fi-ip" . "https://spec.edmcouncil.org/fibo/ontology/FBC/FinancialInstruments/InstrumentPricing/")3620 ("fibo-fbc-pas-fpas" . "https://spec.edmcouncil.org/fibo/ontology/FBC/ProductsAndServices/FinancialProductsAndServices/")3621 ("fibo-fnd-acc-cur" . "https://spec.edmcouncil.org/fibo/ontology/FND/Accounting/CurrencyAmount/")3622 ("fibo-fnd-arr-arr" . "https://spec.edmcouncil.org/fibo/ontology/FND/Arrangements/Arrangements/")3623 ("fibo-fnd-arr-cls" . "https://spec.edmcouncil.org/fibo/ontology/FND/Arrangements/ClassificationSchemes/")3624 ("fibo-fnd-arr-doc" . "https://spec.edmcouncil.org/fibo/ontology/FND/Arrangements/Documents/")3625 ("fibo-fnd-dt-fd" . "https://spec.edmcouncil.org/fibo/ontology/FND/DatesAndTimes/FinancialDates/")3626 ("fibo-fnd-gao-obj" . "https://spec.edmcouncil.org/fibo/ontology/FND/GoalsAndObjectives/Objectives/")3627 ("fibo-fnd-oac-own" . "https://spec.edmcouncil.org/fibo/ontology/FND/OwnershipAndControl/Ownership/")3628 ("fibo-fnd-qt-qtu" . "https://spec.edmcouncil.org/fibo/ontology/FND/Quantities/QuantitiesAndUnits/")3629 ("fibo-fnd-rel-rel" . "https://spec.edmcouncil.org/fibo/ontology/FND/Relations/Relations/")3630 ("fibo-fnd-utl-alx" . "https://spec.edmcouncil.org/fibo/ontology/FND/Utilities/Analytics/")))3631 ("fibo-fnd-utl-av" . "https://spec.edmcouncil.org/fibo/ontology/FND/Utilities/AnnotationVocabulary/")3632 (defparameter *defs* (compute-owl-package-definitions "schema/fibo"3633 :namespace-bindings *fibo-namespace-bindings*))3634 (with-open-file (output "/opt/spocq/fibo-package.lisp" :direction :output3635 :if-does-not-exist :create3636 :if-exists :supersede)3637 (pprint *defs* output))3638 (load "/opt/spocq/fibo-package.lisp")3639 (with-open-file (output "/opt/spocq/fibo-context.json" :direction :output3640 :if-does-not-exist :create3641 :if-exists :supersede)3642 (write-jsonld-context (find-package "https://spec.edmcouncil.org/fibo/ontology/FBC/FinancialInstruments/InstrumentPricing/")3643 :stream output))3644 3645 (test-sparql "select count(*) from <urn:dydra:all> where {?s ?p ?o}" :repository-id "schema/fibo")3646 (test-sparql "select (count(distinct ?g) as ?graphs) where {graph ?g {?s ?p ?o}}" :repository-id "schema/fibo")3647 )3648 3649