marmotta-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Marmotta Wiki] Update of "ImportData" by JakobFrank
Date Fri, 25 Oct 2013 09:08:49 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Marmotta Wiki" for change notification.

The "ImportData" page has been changed by JakobFrank:
https://wiki.apache.org/marmotta/ImportData?action=diff&rev1=7&rev2=8

Comment:
updated local file import according to MARMOTTA-345

  
  == Import data via the local directory ==
  
- There is an special directory (`/path/to/marmotta/home/import`) which is being watched by
Marmotta. Every RDF file copied there would be automatically imported into the triple store;
and once the import has finished, the file will be removed from there.
+ There is an special directory (`${MARMOTTA_HOME}/import`) which is being watched by Marmotta.
Every RDF file copied there would be automatically imported into the triple store; and once
the import has finished, the file will be removed from there.
+ 
+ (Sub-)Folders containing a file called 'lock' are ignored for the automatic import as long
as the lockfile is present.
  
  This import method supports context names:
  
+  * If the (sub-)folder containing the file to import contains a file called `config` containing
a property `context` the value of this property is used as (full qualified) context. Otherwise,
   * The files copied in the root on that directory would be imported into the default context.
-  * Sub-folders would be taken into account to select the target context name. For instance,
if you copy a RDF file into `/path/to/marmotta/home/import/foo/bar`, the data would be imported
into a context named `http://host/marmotta/context/foo/bar`. 
+  * Sub-folders would be taken into account to select the target context name. For instance,
if you copy a RDF file into `${MARMOTTA_HOME}/import/foo/bar`, the data would be imported
into a context named `${BASE_URI}/context/foo/bar`. 
-  * For fully qualified context names (i.e., non-local), a URL-encoded directory can be used.
For example, if you copy a file into  `/path/to/marmotta/home/import/http%3A%2F%2Fexample.org`,
the triples will be imported in the `http://example.org` context in Marmotta.
+  * For fully qualified context names (i.e., non-local), a URL-encoded directory can be used.
For example, if you copy a file into  `${MARMOTTA_HOME}/import/http%3A%2F%2Fexample.org`,
the triples will be imported in the `http://example.org` context in Marmotta.
  
  == Import data directly to the KiWi triple store ==
  

Mime
View raw message