mp-sparql-moved-to-github.git
9 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/pub/mp-sparql
Adam Dickmeiss [Wed, 27 May 2015 08:55:26 +0000 (08:55 +0000)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/mp-sparql

9 years agoGPLv2 in proper places
Adam Dickmeiss [Wed, 27 May 2015 08:55:21 +0000 (08:55 +0000)]
GPLv2 in proper places

9 years agoMake documentation part of dist
Adam Dickmeiss [Wed, 27 May 2015 08:42:52 +0000 (10:42 +0200)]
Make documentation part of dist

9 years agoAdd Heikki for author
Adam Dickmeiss [Tue, 26 May 2015 12:34:28 +0000 (14:34 +0200)]
Add Heikki for author

9 years agoCheckout submodules as necessary MPSPARQL-23
Adam Dickmeiss [Tue, 26 May 2015 12:26:00 +0000 (14:26 +0200)]
Checkout submodules as necessary MPSPARQL-23

9 years agomanual page (PDF + HTML) MPSPARQL-23
Adam Dickmeiss [Tue, 26 May 2015 12:23:54 +0000 (14:23 +0200)]
manual page (PDF + HTML) MPSPARQL-23

9 years agoMPSPARQL-22: Allow simple searching in the info records
Heikki Levanto [Wed, 20 May 2015 13:47:56 +0000 (15:47 +0200)]
MPSPARQL-22: Allow simple searching in the info records

Always takes the last term in the query, ignoring all
attributes and operators. If the query is an empty string,
or starts with something non-alphabetic, will return info
on all bases. Otherwise on the matching base only.

9 years agoMPSPARQL-22: Renamed 'explain' to 'info'
Heikki Levanto [Wed, 20 May 2015 12:38:07 +0000 (14:38 +0200)]
MPSPARQL-22: Renamed 'explain' to 'info'

Since cat not do a real explain (zeerex) record.

9 years agoMPSPARQL-22: Fix segv when past result set
Heikki Levanto [Wed, 20 May 2015 11:52:41 +0000 (13:52 +0200)]
MPSPARQL-22: Fix segv when past result set

9 years agoMPSPARQL-22: Return some kind of explain
Heikki Levanto [Wed, 20 May 2015 11:28:07 +0000 (13:28 +0200)]
MPSPARQL-22: Return some kind of explain

9 years agoMinor comments
Heikki Levanto [Mon, 18 May 2015 11:37:38 +0000 (13:37 +0200)]
Minor comments

9 years agoLOC-6: Move bf.ref into "thing" so it applies everywhere
Heikki Levanto [Wed, 13 May 2015 11:32:11 +0000 (13:32 +0200)]
LOC-6: Move bf.ref into "thing" so it applies everywhere

9 years agoLOC-6: Drop the "ref" db, integrate into "node"
Heikki Levanto [Wed, 13 May 2015 09:24:34 +0000 (11:24 +0200)]
LOC-6: Drop the "ref" db, integrate into "node"

9 years agoMPSPARQL-19: Clean up logging
Heikki Levanto [Tue, 12 May 2015 12:37:15 +0000 (14:37 +0200)]
MPSPARQL-19: Clean up logging

Log the queries once, do not log the HTTP req/resp, but do
log responses in case of errors

9 years agoMPSPARQL-19: use package.log to return the queries for debugging
Heikki Levanto [Tue, 12 May 2015 12:02:54 +0000 (14:02 +0200)]
MPSPARQL-19: use package.log to return the queries for debugging

9 years agoAdd SRU+CQL config
Adam Dickmeiss [Tue, 12 May 2015 11:45:08 +0000 (13:45 +0200)]
Add SRU+CQL config

9 years agoLOC-6: Some extra indexes
Heikki Levanto [Tue, 12 May 2015 09:48:53 +0000 (11:48 +0200)]
LOC-6: Some extra indexes

bf.ref (for work and instance) returns what work/inst refers to %u
bf.work (for instance) returns teh instance(s) of a work
bf.instance (for work) returns the work this is an instance of

9 years agoLOC-6: Add index for lccn, and update the node and ref indexes
Heikki Levanto [Mon, 11 May 2015 13:48:44 +0000 (15:48 +0200)]
LOC-6: Add index for lccn, and update the node and ref indexes

9 years agoMPSPARQL-17: Accepr bnodes as well as uris
Heikki Levanto [Mon, 11 May 2015 13:45:48 +0000 (15:45 +0200)]
MPSPARQL-17: Accepr bnodes as well as uris

SOme returned nodes have internal node-ids, and not external
uris. This patch makes them fetchable as welll

9 years agoLOC-6: Small hacky bases "node" and "ref"
Heikki Levanto [Mon, 11 May 2015 12:42:04 +0000 (14:42 +0200)]
LOC-6: Small hacky bases "node" and "ref"

9 years agoLOC-6: Use %v for temp variables
Heikki Levanto [Mon, 11 May 2015 12:11:12 +0000 (14:11 +0200)]
LOC-6: Use %v for temp variables

Need to use something like %v_wt, instead of plain ?wt, so that
we get the temp variable number included in the names, and will
not be suing the same temp variable in multiple clauses. That
would go wrong with searches like
  @and
    @atter 1=bf.author a
    @atter 1=bf.author b
With this patch, this searches for works that have an author that
has an 'a', and an author that has a 'b'. Without, it would be
searching for a work that has an author with both 'a' and 'b'.

Unfortunately this makes the config file even less readable.

9 years agoLOC-6: Small indexes for works and instances, person etc
Heikki Levanto [Mon, 11 May 2015 10:53:38 +0000 (12:53 +0200)]
LOC-6: Small indexes for works and instances, person etc

9 years agoMerge branch 'master' of ssh://git.indexdata.com:222/home/git/pub/mp-sparql
Heikki Levanto [Fri, 8 May 2015 14:21:16 +0000 (16:21 +0200)]
Merge branch 'master' of ssh://git.indexdata.com:222/home/git/pub/mp-sparql

Conflicts:
bibframe/triplestore.xml

9 years agoLOC-6: Isbn indexes for instances
Heikki Levanto [Fri, 8 May 2015 14:08:07 +0000 (16:08 +0200)]
LOC-6: Isbn indexes for instances

9 years agoLOC-6: isbn index: Check we have a literal before substring
Heikki Levanto [Fri, 8 May 2015 14:11:48 +0000 (16:11 +0200)]
LOC-6: isbn index: Check we have a literal before substring

9 years agoLOC-6: Isbn indexes for instances
Heikki Levanto [Fri, 8 May 2015 14:08:07 +0000 (16:08 +0200)]
LOC-6: Isbn indexes for instances

9 years agoLOC-6: Search by type and contentCategory
Heikki Levanto [Fri, 8 May 2015 12:23:48 +0000 (14:23 +0200)]
LOC-6: Search by type and contentCategory

9 years agoMPSPARQL-21: Add %t for unquoted expansion
Heikki Levanto [Fri, 8 May 2015 12:14:41 +0000 (14:14 +0200)]
MPSPARQL-21: Add %t for unquoted expansion

9 years agoOne more fix in works
Heikki Levanto [Fri, 8 May 2015 12:09:10 +0000 (14:09 +0200)]
One more fix in works

9 years agoRename BF-F to BF-V for Verbose, as specified in the contract
Heikki Levanto [Fri, 8 May 2015 10:35:35 +0000 (12:35 +0200)]
Rename BF-F to BF-V for Verbose, as specified in the contract

9 years agotypo
Heikki Levanto [Fri, 8 May 2015 09:40:45 +0000 (11:40 +0200)]
typo

9 years agowhitespace
Heikki Levanto [Fri, 8 May 2015 09:36:54 +0000 (11:36 +0200)]
whitespace

9 years agoFix (again!) the expansion of works and instances
Heikki Levanto [Fri, 8 May 2015 09:33:53 +0000 (11:33 +0200)]
Fix (again!) the expansion of works and instances

Exclude triplets that start from a derived work/inst, but
keep those that lead to such

9 years agoFix bug in the MINUS clauses
Heikki Levanto [Fri, 8 May 2015 09:09:07 +0000 (11:09 +0200)]
Fix bug in the MINUS clauses

and simplify the anytitle search in works

9 years agoMore refactoring
Heikki Levanto [Thu, 7 May 2015 13:37:52 +0000 (15:37 +0200)]
More refactoring

tidy up the BF-F format, esp for "work". And the "anytitle" search
for "work", the same way as "instance" is.

9 years agoHeavy refactoring
Heikki Levanto [Thu, 7 May 2015 13:22:03 +0000 (15:22 +0200)]
Heavy refactoring

Created a db "thing" that gets included in every other db, and
moved common things there. Changed the search clause to always
SELECT DISTINCT ?thing, instead of ?work or ?instance. Moved the
BF-L present format into "thing". Created a new "smallindex"
so "work" and "instance" can share all the small indexes (person
etc).

9 years agoCleaning up indentation and whitespace
Heikki Levanto [Thu, 7 May 2015 12:31:51 +0000 (14:31 +0200)]
Cleaning up indentation and whitespace

9 years agotowards LOC-6: Title and author indexes for instances
Heikki Levanto [Thu, 7 May 2015 11:52:00 +0000 (13:52 +0200)]
towards LOC-6: Title and author indexes for instances

9 years agoTowards LOC-7: beginnings of a proper instance base
Heikki Levanto [Wed, 6 May 2015 12:18:03 +0000 (14:18 +0200)]
Towards LOC-7: beginnings of a proper instance base

Present formats BF-L and BF-F seem to work. Needs more indexes

9 years agoLOC-6: Author indexes
Heikki Levanto [Mon, 4 May 2015 12:22:06 +0000 (14:22 +0200)]
LOC-6: Author indexes

9 years agoTowards LOC-6: Title indexes for works
Heikki Levanto [Mon, 4 May 2015 09:56:52 +0000 (11:56 +0200)]
Towards LOC-6: Title indexes for works

9 years agoTowards LOC-7: Using the include system for all small bases
Heikki Levanto [Thu, 30 Apr 2015 12:59:59 +0000 (14:59 +0200)]
Towards LOC-7: Using the include system for all small bases

Also some experiments with entities, that seem not to work (yet?)

9 years agoMerge branch 'master' of ssh://git.indexdata.com:222/home/git/pub/mp-sparql
Heikki Levanto [Thu, 30 Apr 2015 11:55:28 +0000 (13:55 +0200)]
Merge branch 'master' of ssh://git.indexdata.com:222/home/git/pub/mp-sparql

9 years agoMultiple databases may be referred to - in include
Adam Dickmeiss [Thu, 30 Apr 2015 11:37:57 +0000 (13:37 +0200)]
Multiple databases may be referred to - in include

9 years agoTowards LOC-7: experimental BF-FI, works with instances
Heikki Levanto [Thu, 30 Apr 2015 09:28:27 +0000 (11:28 +0200)]
Towards LOC-7: experimental BF-FI, works with instances

9 years agoAllow include of db definitions MPSPARQL-15
Adam Dickmeiss [Thu, 30 Apr 2015 09:20:41 +0000 (11:20 +0200)]
Allow include of db definitions MPSPARQL-15

9 years agoConfig for record retrieval should be called present MPSPARQL-16
Adam Dickmeiss [Thu, 30 Apr 2015 08:48:42 +0000 (10:48 +0200)]
Config for record retrieval should be called present MPSPARQL-16

Rather than uri .

9 years agoDRY the schema lookup
Adam Dickmeiss [Thu, 30 Apr 2015 08:44:08 +0000 (10:44 +0200)]
DRY the schema lookup

9 years agoTowards LOC-7: Schematized a simple database
Heikki Levanto [Wed, 29 Apr 2015 13:58:29 +0000 (15:58 +0200)]
Towards LOC-7: Schematized a simple database

9 years agoVersion 0.5 v0.5
Adam Dickmeiss [Wed, 29 Apr 2015 11:07:01 +0000 (11:07 +0000)]
Version 0.5

9 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/pub/mp-sparql
Adam Dickmeiss [Wed, 29 Apr 2015 10:56:19 +0000 (12:56 +0200)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/mp-sparql

9 years agoAllow no element set name again
Adam Dickmeiss [Wed, 29 Apr 2015 10:54:28 +0000 (12:54 +0200)]
Allow no element set name again

When no element set is given, it will pick the first uri-line.
If there's no uri-line it will use query of the matching db.

9 years agoLOC-7: elementSetName BF-F for "work"
Heikki Levanto [Wed, 29 Apr 2015 10:43:43 +0000 (12:43 +0200)]
LOC-7: elementSetName BF-F for "work"

Also removed old experimental databases now that we have the present
queries

9 years agoMerge branch 'master' of ssh://git.indexdata.com:222/home/git/pub/mp-sparql
Heikki Levanto [Wed, 29 Apr 2015 10:26:22 +0000 (12:26 +0200)]
Merge branch 'master' of ssh://git.indexdata.com:222/home/git/pub/mp-sparql

9 years agoTowards LOC-7: Experiments in expanding works
Heikki Levanto [Wed, 29 Apr 2015 10:26:01 +0000 (12:26 +0200)]
Towards LOC-7: Experiments in expanding works

9 years agoWorking sub query (uri.schema) MPSPARQL-13
Adam Dickmeiss [Wed, 29 Apr 2015 09:53:35 +0000 (11:53 +0200)]
Working sub query (uri.schema) MPSPARQL-13

9 years agoAdd debug flags + warning to compiler
Adam Dickmeiss [Wed, 29 Apr 2015 09:51:58 +0000 (11:51 +0200)]
Add debug flags + warning to compiler

9 years agoFirst work on Separate search and present queries
Adam Dickmeiss [Tue, 28 Apr 2015 14:17:04 +0000 (16:17 +0200)]
First work on Separate search and present queries

9 years agoMake make check work from top-level
Adam Dickmeiss [Tue, 28 Apr 2015 13:04:13 +0000 (15:04 +0200)]
Make make check work from top-level

9 years agoFix make check fails in src MPSPARQL-14
Adam Dickmeiss [Tue, 28 Apr 2015 12:42:17 +0000 (14:42 +0200)]
Fix make check fails in src MPSPARQL-14

9 years ago%u variable: for <urls> MPSPARQL-12
Adam Dickmeiss [Tue, 28 Apr 2015 11:49:53 +0000 (13:49 +0200)]
%u variable: for <urls> MPSPARQL-12

9 years agoTowards LOC-7: Config example and experiments
Heikki Levanto [Tue, 28 Apr 2015 09:29:08 +0000 (11:29 +0200)]
Towards LOC-7: Config example and experiments

9 years agoLOC-5: Extra hack indexes to get to nodes and references
Heikki Levanto [Thu, 23 Apr 2015 10:55:19 +0000 (12:55 +0200)]
LOC-5: Extra hack indexes to get to nodes and references

Will come in handy when you search for a person, and get the name
and uri. With the ref search you can see which object refers to
the person.

9 years agoLOC-5. Put back the DISTINCT in the queries
Heikki Levanto [Thu, 23 Apr 2015 09:45:33 +0000 (11:45 +0200)]
LOC-5. Put back the DISTINCT in the queries

Will not harm the trivial ones, and will help with the titles,
removing duplicates when both title and subtitle match.

9 years agoLOC-5: Search for titles
Heikki Levanto [Wed, 22 Apr 2015 13:43:00 +0000 (15:43 +0200)]
LOC-5: Search for titles

9 years agoLOC-5: Added a lot of new databases
Heikki Levanto [Tue, 21 Apr 2015 13:05:11 +0000 (15:05 +0200)]
LOC-5: Added a lot of new databases

 person, meeting, agent, event, organization, topic

9 years agoLOC-5: Place search implemented
Heikki Levanto [Tue, 21 Apr 2015 10:58:44 +0000 (12:58 +0200)]
LOC-5: Place search implemented

9 years agoDatabase + schema match in sections MPSPARQL-11
Adam Dickmeiss [Thu, 16 Apr 2015 12:11:34 +0000 (14:11 +0200)]
Database + schema match in sections MPSPARQL-11

For same database all SPARQL sections are fired off and the relevant
result (xml documents) are returned for given schema. If schema is not
given, first defined section will be used.

9 years agoAdd run script to just run within source
Adam Dickmeiss [Wed, 15 Apr 2015 08:48:21 +0000 (10:48 +0200)]
Add run script to just run within source

9 years agoAdd rule to make sparql.html
Adam Dickmeiss [Thu, 19 Feb 2015 12:36:07 +0000 (13:36 +0100)]
Add rule to make sparql.html

9 years agoVersion 0.4 v0.4
Adam Dickmeiss [Thu, 19 Feb 2015 12:08:10 +0000 (12:08 +0000)]
Version 0.4

9 years agoUpdate NEWS
Adam Dickmeiss [Thu, 19 Feb 2015 12:07:38 +0000 (12:07 +0000)]
Update NEWS

9 years agodelete-trailing-whitespace
Adam Dickmeiss [Thu, 19 Feb 2015 09:30:36 +0000 (10:30 +0100)]
delete-trailing-whitespace

9 years agoMerge branch 'master' of ssh://git.indexdata.com:222/home/git/pub/mp-sparql
Heikki Levanto [Wed, 18 Feb 2015 15:22:11 +0000 (16:22 +0100)]
Merge branch 'master' of ssh://git.indexdata.com:222/home/git/pub/mp-sparql

9 years agoMore examples and explanations on the man page
Heikki Levanto [Wed, 18 Feb 2015 15:21:48 +0000 (16:21 +0100)]
More examples and explanations on the man page

9 years agoAdd centos5
Adam Dickmeiss [Wed, 18 Feb 2015 14:36:12 +0000 (14:36 +0000)]
Add centos5

9 years agoMPSPARQL-7: Use sql:GROUP_DIGEST instead of GROUP_BY
Heikki Levanto [Wed, 18 Feb 2015 13:04:51 +0000 (14:04 +0100)]
MPSPARQL-7: Use sql:GROUP_DIGEST instead of GROUP_BY

An easier way to return one row for each $work, with multiple
subjects (etc) concatenated into one field.

9 years agoallow triplestore endpoint to be given once MPSPARQL-10
Adam Dickmeiss [Wed, 18 Feb 2015 12:19:35 +0000 (13:19 +0100)]
allow triplestore endpoint to be given once MPSPARQL-10

9 years agoMPSPARQL-7: More generic keyword search
Heikki Levanto [Tue, 17 Feb 2015 13:56:20 +0000 (14:56 +0100)]
MPSPARQL-7: More generic keyword search

Searches any terms that seem to relate to the $work in question

9 years agoMPSPARQL-7: Deduplicate the $work
Heikki Levanto [Tue, 17 Feb 2015 13:48:32 +0000 (14:48 +0100)]
MPSPARQL-7: Deduplicate the $work

Will only list one line for each $work we find. So we only
get one author, title, and subject.

9 years agoFix wrbuf call - introduced by MPSPARQL-9
Adam Dickmeiss [Tue, 17 Feb 2015 13:39:48 +0000 (14:39 +0100)]
Fix wrbuf call - introduced by MPSPARQL-9

9 years agoMerge branch 'master' of ssh://git.indexdata.com:222/home/git/pub/mp-sparql
Heikki Levanto [Tue, 17 Feb 2015 13:33:27 +0000 (14:33 +0100)]
Merge branch 'master' of ssh://git.indexdata.com:222/home/git/pub/mp-sparql

9 years agoMPSPARQL-7: kw search by UNION of title, author, and subject
Heikki Levanto [Tue, 17 Feb 2015 13:32:41 +0000 (14:32 +0100)]
MPSPARQL-7: kw search by UNION of title, author, and subject

9 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/pub/mp-sparql
Adam Dickmeiss [Tue, 17 Feb 2015 13:23:09 +0000 (14:23 +0100)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/mp-sparql

9 years agoAllow solution sequence / modifier MPSPARQL-9
Adam Dickmeiss [Tue, 17 Feb 2015 13:21:17 +0000 (14:21 +0100)]
Allow solution sequence / modifier MPSPARQL-9

Also tune the creation of whitespace a bit for "form" .

9 years agoMPSPARQL-8: Use OPTIONAL for all fields in the "work" db
Heikki Levanto [Tue, 17 Feb 2015 10:33:03 +0000 (11:33 +0100)]
MPSPARQL-8: Use OPTIONAL for all fields in the "work" db

Seems to work all right, although we don't have enough test data
to see records without subjects or authors

9 years agoRetain root nodes of results (RDF or sparql) MPX-10
Adam Dickmeiss [Mon, 16 Feb 2015 16:14:33 +0000 (17:14 +0100)]
Retain root nodes of results (RDF or sparql) MPX-10

9 years agoVersion 0.3 v0.3
Adam Dickmeiss [Fri, 6 Feb 2015 13:31:16 +0000 (13:31 +0000)]
Version 0.3

9 years agobibframe sample config in /usr/share/mp-sparql/bibframe MPSPARQL-6
Adam Dickmeiss [Fri, 6 Feb 2015 13:28:00 +0000 (13:28 +0000)]
bibframe sample config in /usr/share/mp-sparql/bibframe MPSPARQL-6

9 years agoschema check and accept header update MPSPARQL-5
Adam Dickmeiss [Wed, 4 Feb 2015 12:49:10 +0000 (13:49 +0100)]
schema check and accept header update MPSPARQL-5

9 years agoVersion 0.2 v0.2
Adam Dickmeiss [Wed, 28 Jan 2015 09:48:15 +0000 (09:48 +0000)]
Version 0.2

9 years agoAdd require for metaproxy devel
Adam Dickmeiss [Wed, 28 Jan 2015 09:47:46 +0000 (09:47 +0000)]
Add require for metaproxy devel

9 years agoResult construction MPSPARCL-4
Adam Dickmeiss [Thu, 22 Jan 2015 14:31:36 +0000 (15:31 +0100)]
Result construction MPSPARCL-4

Configuration item "field" replaced by "form", which allows
SELECT/CONSTRUCT to be defined. The triple store is now returning
application/rdf+xml response and this is what's decoded.

9 years agoDatabase work+instance with basic Bib-1 attributes
Adam Dickmeiss [Mon, 12 Jan 2015 12:41:48 +0000 (13:41 +0100)]
Database work+instance with basic Bib-1 attributes

9 years agoAdd man page and pdate RPM to install it MPSPARQL-3 v0.1
Adam Dickmeiss [Fri, 9 Jan 2015 13:23:27 +0000 (14:23 +0100)]
Add man page and pdate RPM to install it MPSPARQL-3

9 years agoFirst go at Debian package
Adam Dickmeiss [Fri, 9 Jan 2015 12:27:42 +0000 (13:27 +0100)]
First go at Debian package

9 years agoPass VERSION to CFLAGS
Adam Dickmeiss [Fri, 9 Jan 2015 12:21:43 +0000 (13:21 +0100)]
Pass VERSION to CFLAGS

9 years agohttp_client to triplestore.xml
Adam Dickmeiss [Fri, 9 Jan 2015 12:16:11 +0000 (13:16 +0100)]
http_client to triplestore.xml

9 years agoIf backend returns other than 200 (OK) produce diagnostic
Adam Dickmeiss [Mon, 5 Jan 2015 13:55:40 +0000 (14:55 +0100)]
If backend returns other than 200 (OK) produce diagnostic

9 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/pub/mp-sparql
Adam Dickmeiss [Mon, 5 Jan 2015 13:49:58 +0000 (13:49 +0000)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/mp-sparql