You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@marmotta.apache.org by Apache Wiki <wi...@apache.org> on 2013/09/03 14:15:09 UTC

[Marmotta Wiki] Update of "ImportData" by SergioFernandez

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 SergioFernandez:
https://wiki.apache.org/marmotta/ImportData?action=diff&rev1=5&rev2=6

Comment:
documented MARMOTTA-293

  
  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.
  
- The files copied in the root on that directory would be imported into the default context. But 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`. 
+ This import method supports context names:
  
+  * 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`. 
+  * 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.
+