I'm trying to learn Stardog. I have a toy example with a CSV file. The headers of the CSV are:
- account_id
- balance
- apr
- credit_limit
- start_date
I started the Stardog server and created a DB as follows:
stardog-admin db create -n sandboxDB
I added the CSV using:
stardog-admin virtual import sandboxDB accounts.sms accounts.csv
I got the following error:
TEMPLATE() function only allowed in virtual graph mappings.
Here is my SMS file:
prefix account: <http://stardog.com/account/>
mapping
from CSV {
}
TO {
?account_id a account:Accounts;
account:balance ?balance;
account:apr ?apr;
account:credit_limit ?credit_limit;
account:start_date ?start_date.
}
WHERE {
BIND (template("http://stardog.com/accounts/{account_id}") AS ?account_id)
}
What am I missing?