Expenses (xps) vocabulary examples

The following example shows how to use the Expenses (xps) vocab to model a single expense of a person (see also source).


@prefix xps: <http://vocab.deri.ie/xps#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

:LunchAtDERICafe rdf:type xps:Entry ;
       xps:expense <http://sw-app.org/mic.xhtml#i>;
       xps:amount "5"^^xsd:float ;
       xps:currency <http://dbpedia.org/resource/Euro> ;
       xps:receiver :DERIcafe ;
       xps:category <http://dbpedia.org/resource/Food> ;
       dcterms:date "2010-02-03"^^xsd:date ;
       foaf:based_near <http://dbpedia.org/resource/Galway> .

:DERIcafe a foaf:Agent;
              rdfs:label "DERI cafe" .