#   Originally Quicken(tm) Interchange Format now generic RDF vocabulary
#

@prefix r:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix s: <http://www.w3.org/2000/01/rdf-schema#> .

@prefix :  <http://www.w3.org/2000/10/swap/pim/qif#> .
@prefix q: <http://www.w3.org/2000/10/swap/pim/qif#> .
@prefix doc: <http://www.w3.org/2000/10/swap/pim/doc#> .
@prefix trip: <http://www.w3.org/ns/pim/trip#>.

<> doc:version "$Id: qif.n3,v 1.10 2011/02/01 04:14:29 timbl Exp $";
  s:seeAlso <qif2n3.py>, <http://dev.w3.org/cvsweb/2000/quacken/>,
	<http://dev.w3.org/cvsweb/~checkout~/2000/quacken/vocab.n3?rev=1.1>,
        <http://www.intuit.com/support/quicken/2002/win/1177.html>;
	s:comment """An ontology for data exported, for example, by Quicken,
	as an interchange format. Also a generally useful ontology for
	bank tranactions.  See also the OFX ontology.""".


q:Transaction a s:Class; s:label "transaction".
q:Classified a s:Class; s:label "classified"; s:subClassOf q:Transaction.
q:Unclassified a s:Class; s:label "unclassified"; s:subClassOf q:Transaction.
q:UnclassifiedIncome a s:Class; s:label "unclassified income"; s:subClassOf q:Unclassified.
q:UnclassifiedOutgoing a s:Class; s:label "unclassified outgoing"; s:subClassOf q:Unclassified.

q:Account a s:Class; s:label "account".

q:Bank a s:Class.  # should be Bank_transaction probably (where used? - in .qif)

q:Cat a s:Class; s:label "category".
q:category a r:Property; s:label "category"; s:domain q:Transaction.

q:amount a r:Property; s:label "amount"; s:domain q:Transaction.
q:date   a r:Property; s:label "date"; s:domain q:Transaction.
q:payee  a r:Property; s:label "payee"; s:domain q:Transaction;
    s:subPropertyOf s:label. # If you have to use omne thing, use this.

q:toAccount a r:Property; s:label "account"; s:domain q:Transaction;
    s:range :Account;
    s:comment"The account to which money flows when the amount is positive.".

q:accordingTo a r:Property; s:label "statement";
    s:domain q:Transaction; s:range doc:Work;
    s:comment "The document which is the source of data for this transaction.".


#  No .. use http://www.w3.org/ns/pim/trip#trip
#q:trip a r:Property; s:label "trip";
#    s:comment "The trip associated with this transaction, etc. For expenses purposes, for example.";
#    s:range trip:Trip.

#ENDS

