add git mirrors
[librdf.sqlite.git] / sql / insert_triple.sql
blob536581ecbfbf586d5930c5f94d87e7c6702a7c8c
1 -- 
2 -- Copyright (c) 2014-2015, Marcus Rohrmoser mobile Software, http://mro.name/me
3 -- All rights reserved.
4 -- 
5 -- Redistribution and use in source and binary forms, with or without modification, are permitted
6 -- provided that the following conditions are met:
7 -- 
8 -- 1. Redistributions of source code must retain the above copyright notice, this list of conditions
9 --    and the following disclaimer.
10 -- 
11 -- 2. The software must not be used for military or intelligence or related purposes nor
12 --    anything that's in conflict with human rights as declared in http://www.un.org/en/documents/udhr/ .
13 -- 
14 -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
15 -- IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
16 -- FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
17 -- CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18 -- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
19 -- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
20 -- IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
21 -- THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
22 -- 
24 INSERT OR IGNORE INTO triples(
25   id,
26   s_uri_id, s_uri,
27   s_blank_id, s_blank,
28   p_uri_id, p_uri,
29   o_uri_id, o_uri,
30   o_blank_id, o_blank,
31   o_lit_id, o_datatype_id, o_datatype, o_language, o_text,
32   c_uri_id, c_uri
33 ) VALUES (
34   :stmt_id,
35   :s_uri_id, :s_uri,
36   :s_blank_id, :s_blank,
37   :p_uri_id, :p_uri,
38   :o_uri_id, :o_uri,
39   :o_blank_id, :o_blank,
40   :o_lit_id, :o_datatype_id, :o_datatype, :o_language, :o_text,
41   :c_uri_id, :c_uri