# $Id: TrustRules.n3,v 1.1 2004/10/19 14:42:05 graham Exp $
#
# Rules for extracting information from iTrust paper survey
#
#--------+---------+---------+---------+---------+---------+---------+---------+
#
# Copyright (c) 2004, Nine by Nine
#
#--------+---------+---------+---------+---------+---------+---------+---------+
# $Source: /Users/graham/cvs/cvsweb/ninebynine.org/docs/iTrust/TrustRules.n3,v $
# $Author: graham $
# $Date: 2004/10/19 14:42:05 $
# $Id: TrustRules.n3,v 1.1 2004/10/19 14:42:05 graham Exp $
#--------+---------+---------+---------+---------+---------+---------+---------+
#        1         2         3         4         5         6         7         8

@prefix rdf:      <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs:     <http://www.w3.org/2000/01/rdf-schema#> .
@prefix log:      <http://www.w3.org/2000/10/swap/log#> .
@prefix string:   <http://www.w3.org/2000/10/swap/string#> .
@prefix daml:     <http://www.daml.org/2001/03/daml+oil#> .
@prefix foaf:     <http://xmlns.com/foaf/0.1/> .
@prefix dc:       <http://purl.org/dc/elements/1.1/> .
@prefix ical:     <http://www.ilrt.bris.ac.uk/discovery/2001/06/schemas/ical-full/hybrid.rdf#> .
@prefix icalutil: <http://ilrt.org/discovery/2001/06/schemas/ical-util#> .

@prefix ps:       <http://id.ninebynine.org/wip/2004/ps/> .

# -----------------------
# Gather by single topics
# -----------------------

# Gather papers in category computation
#
{ ?p ps:category "computation" ;
     dc:title    ?t .
}
log:implies
{ ps:catComputation
    dc:title ?t ;
    ps:includes 
    [ ps:paper ?p ;
      dc:title ?t
    ] .
} .

# Gather papers in category reputation
#
{ ?p ps:category "reputation" ;
     dc:title    ?t .
}
log:implies
{ ps:catReputation
    dc:title ?t ;
    ps:includes 
    [ ps:paper ?p ;
      dc:title ?t
    ] .
} .

# Gather papers in category philosophy
#
{ ?p ps:category "philosophy" ;
     dc:title    ?t .
}
log:implies
{ ps:catPhilosophy
    dc:title ?t ;
    ps:includes 
    [ ps:paper ?p ;
      dc:title ?t
    ] .
} .

# Gather papers in category economics
#
{ ?p ps:category "economics" ;
     dc:title    ?t .
}
log:implies
{ ps:catEconomics 
    dc:title ?t ;
    ps:includes 
    [ ps:paper ?p ;
      dc:title ?t
    ] .
} .

# Gather papers in category legal
#
{ ?p ps:category "legal" ;
     dc:title    ?t .
}
log:implies
{ ps:catLegal
    dc:title ?t ;
    ps:includes 
    [ ps:paper ?p ;
      dc:title ?t
    ] .
} .

# Gather papers in category sociology
#
{ ?p ps:category "sociology" ;
     dc:title    ?t .
}
log:implies
{ ps:catSociology 
    dc:title ?t ;
    ps:includes 
    [ ps:paper ?p ;
      dc:title ?t
    ] .
} .

# Gather papers in category statistics
#
{ ?p ps:category "statistics" ;
     dc:title    ?t .
}
log:implies
{ ps:catStatistics 
    dc:title ?t ;
    ps:includes 
    [ ps:paper ?p ;
      dc:title ?t
    ] .
} .

# Gather papers in category psychology
#
{ ?p ps:category "psychology" ;
     dc:title    ?t .
}
log:implies
{ ps:catPsychology 
    dc:title ?t ;
    ps:includes 
    [ ps:paper ?p ;
      dc:title ?t
    ] .
} .

# Gather papers in category privacy
#
{ ?p ps:category "privacy" ;
     dc:title    ?t .
}
log:implies
{ ps:catPrivacy 
    dc:title ?t ;
    ps:includes 
    [ ps:paper ?p ;
      dc:title ?t
    ] .
} .

# Gather papers in category logic
#
{ ?p ps:category "logic" ;
     dc:title    ?t .
}
log:implies
{ ps:catLogic
    dc:title ?t ;
    ps:includes 
    [ ps:paper ?p ;
      dc:title ?t
    ] .
} .

# ---------------------------
# Gather by computing + topic
# ---------------------------

# Gather papers in category computing + reputation
#
{ ?p ps:category "computation" ;
     ps:category "reputation" ;
     dc:title    ?t .
}
log:implies
{ ps:catComputingReputation
    dc:title ?t ;
    ps:includes 
    [ ps:paper ?p ;
      dc:title ?t
    ] .
} .

# Gather papers in category computing + philosophy
#
{ ?p ps:category "computation" ;
     ps:category "philosophy" ;
     dc:title    ?t .
}
log:implies
{ ps:catComputingPhilosophy
    dc:title ?t ;
    ps:includes 
    [ ps:paper ?p ;
      dc:title ?t
    ] .
} .

# Gather papers in category computing + economics
#
{ ?p ps:category "computation" ;
     ps:category "economics" ;
     dc:title    ?t .
}
log:implies
{ ps:catComputingEconomics 
    dc:title ?t ;
    ps:includes 
    [ ps:paper ?p ;
      dc:title ?t
    ] .
} .

# Gather papers in category computing + legal
#
{ ?p ps:category "computation" ;
     ps:category "legal" ;
     dc:title    ?t .
}
log:implies
{ ps:catComputingLegal
    dc:title ?t ;
    ps:includes 
    [ ps:paper ?p ;
      dc:title ?t
    ] .
} .

# Gather papers in category computing + sociology
#
{ ?p ps:category "computation" ;
     ps:category "sociology" ;
     dc:title    ?t .
}
log:implies
{ ps:catComputingSociology 
    dc:title ?t ;
    ps:includes 
    [ ps:paper ?p ;
      dc:title ?t
    ] .
} .

# Gather papers in category computing + statistics
#
{ ?p ps:category "computation" ;
     ps:category "statistics" ;
     dc:title    ?t .
}
log:implies
{ ps:catComputingStatistics 
    dc:title ?t ;
    ps:includes 
    [ ps:paper ?p ;
      dc:title ?t
    ] .
} .

# Gather papers in category computing + psychology
#
{ ?p ps:category "computation" ;
     ps:category "psychology" ;
     dc:title    ?t .
}
log:implies
{ ps:catComputingPsychology 
    dc:title ?t ;
    ps:includes 
    [ ps:paper ?p ;
      dc:title ?t
    ] .
} .

# Gather papers in category computing + privacy
#
{ ?p ps:category "computation" ;
     ps:category "privacy" ;
     dc:title    ?t .
}
log:implies
{ ps:catComputingPrivacy 
    dc:title ?t ;
    ps:includes 
    [ ps:paper ?p ;
      dc:title ?t
    ] .
} .

# Gather papers in category computing + logic
#
{ ?p ps:category "computation" ;
     ps:category "logic" ;
     dc:title    ?t .
}
log:implies
{ ps:catLogic
    dc:title ?t ;
    ps:includes 
    [ ps:paper ?p ;
      dc:title ?t
    ] .
} .

################

# Gather list of all paper titles (for count)
#
{ ?p dc:title    ?t .
}
log:implies
{ ps:allPapers dc:title ?t .
} .

################

# Gather list of all trust definitions (for count)
#
{ ?p ps:trust    ?t .
}
log:implies
{ ps:allTrustDefs ps:trust ?t .
} .

#
#--------+---------+---------+---------+---------+---------+---------+---------+
# $Log: TrustRules.n3,v $
# Revision 1.1  2004/10/19 14:42:05  graham
# iTrust survey docs to Web site CVS
#
# Revision 1.1  2004/10/04 15:51:19  graham
# Add survey document generator compoennts and presentation
#
