@prefix v: <http://www.w3.org/2001/07/25-swws/egv#>.
@prefix dot: <http://www.w3.org/2001/02pd/gv#>.
@prefix log: <http://www.w3.org/2000/10/swap/log#>.
@prefix org: <http://www.w3.org/2001/04/roadmap/org#>.
@prefix sv: <http://www.w3.org/2001/06/swamt/vocab#>.
@prefix contact: <http://www.w3.org/2000/10/swap/pim/contact#>.
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.

# display rules for announce.n3

this log:forAll v:s, v:p, v:o.

# pick arbitrary node for starting graph 

v:theGraph dot:hasNode <http://www.w3.org/TR/xmlbase/>.

# display property a certain way depending on which file its asserted in

# The following recipe basically says... if there is a assertion with
# a predicate 'contact:mailbox' in the file 'announce.n3' then make
# this 'red'

{ <announce.n3> log:resolvesTo [ log:includes { v:s sv:status v:o } ] }
log:implies
{ v:s [ a dot:EdgeProperty;
	dot:label "sv:status";
	dot:color "red" ] v:o }.

{ <announce.n3> log:resolvesTo [ log:includes { v:s sv:of v:o } ] }
log:implies
{ v:s [ a dot:EdgeProperty;
	dot:label "sv:of";
	dot:color "red" ] v:o }.

{ <announce.n3> log:resolvesTo [ log:includes { v:s sv:editor v:o } ] }
log:implies
{ v:s [ a dot:EdgeProperty;
	dot:label "sv:editor";
	dot:color "red" ] v:o }.

{ v:s sv:title v:o } log:implies { v:s dot:label v:o; dot:shape "box" }.

{ <announce.n3> log:resolvesTo [ log:includes { v:s contact:mailbox v:o } ] }
log:implies
{ v:s [	a dot:EdgeProperty;
	dot:label "contact:mailbox";
	dot:color "red" ] v:o }.




