@prefix dc: .
@prefix time: .
@prefix foaf: .
@prefix owl: .
@prefix rdf: .
@prefix rdfs: .
@prefix rev: .
@prefix s: .
@prefix vs: .
@prefix xsd: .
s:LogEntry
rdfs:comment "LogEntry is the single line of a usual log file";
a rdfs:Class;
s:hasDateTime time:Instant;
s:fromIP rdfs:Literal;
s:hasPersistentSessionID rdfs:Literal;
s:hasAction s:Action.
s:Action
rdfs:comment "Action is a generic class that is subclassed in the various types of actions";
a rdfs:Class.
#######################################################
#Here the list of some of the Actions (to be completed)
s:LoginAction # This action is very important because it lets the RS to correlate different sessions of the same users
rdfs:subClassOf s:Action;
s:loggedInUser foaf:Person.
s:LogoutAction
rdfs:subClassOf s:Action.
s:Item
rdfs:comment "Item is the generic item managed by SOA4All Studio (a Service)";
a rdfs:Class.
s:Service
rdfs:subClassOf s:Item.
s:Goal # available in the future version
rdfs:subClassOf s:Item.
s:ItemSelection
rdfs:subClassOf s:Action;
s:selectedItem s:Item.
s:ItemBookmarking
rdfs:subClassOf s:Action;
s:bookmarkedItem s:Item.
s:ItemTagging
rdfs:subClassOf s:Action;
s:taggedItem s:Item;
s:tag rdfs:Literal.
s:ItemEditing
rdfs:subClassOf s:Action;
s:editedItem s:Item.
s:ItemCategorization
rdfs:subClassOf s:Action;
s:categorizedItem s:Item;
s:category rdfs:Literal.
s:ItemInvocation
rdfs:subClassOf s:Action;
s:invokedItem s:Item.
#############################################################################################
# This section is added by Dong LIU (OU), which describes the logs of service repository
s:ServiceRepositoyLogEntry
rdfs:subClassOf s:LogEntry;
s:hasAgent foaf:Agent;
s:hasMethod rdfs:Literal. # The way users make use of to access our repository, e.g. GWT-based Web application, REST API, etc.
s:Document
rdfs:subClassOf s:Item.
s:ItemCreation
rdfs:subClassOf s:Action;
s:createdItem s:Item.
s:ItemRetrieval
rdfs:subClassOf s:Action;
s:retrievedItem s:Item.
s:ItemUpdating
rdfs:subClassOf s:Action;
s:updatedItem s:Item.
s:ItemDeleting
rdfs:subClassOf s:Action;
s:deletedItem s:Item.
# The end of Dong's section
#############################################################################################
#############################################################################################
# Binding with the Revyu schema (from http://danja.talis.com/xmlns/rev_2007-11-09/index.html)
s:ItemReview
rdfs:subClassOf s:Action;
s:hasReview rev:Review.
# The hasReview property can be applied to s:Item
rev:hasReview
rdfs:domain s:Item.
##########################################################################################
# Import of the Revyu schema (from http://danja.talis.com/xmlns/rev_2007-11-09/index.html)
rev:Review a rdfs:Class;
rdfs:comment "A review of an artistic work";
rdfs:isDefinedBy ;
rdfs:label "Review";
vs:moreinfo "core term";
vs:term_status "stable".
rev:hasReview a rdf:Property;
rdfs:comment "Used to associate a work of art with a a review";
rdfs:domain rdfs:Resource;
rdfs:isDefinedBy ;
rdfs:label "hasReview";
rdfs:range rev:Review;
vs:moreinfo "core term";
vs:term_status "stable".
rev:rating a rdf:Property;
rdfs:comment "A numeric value";
rdfs:isDefinedBy ;
rdfs:label "rating";
vs:moreinfo "core term";
vs:term_status "stable".
rev:reviewer a rdf:Property;
rdfs:comment "The person that has written the review";
rdfs:domain ;
rdfs:isDefinedBy ;
rdfs:label "reviewer";
rdfs:range foaf:Person;
vs:moreinfo "core term";
vs:term_status "stable".
rev:text a rdf:Property;
rdfs:comment "The text of the review";
rdfs:isDefinedBy ;
rdfs:label "text";
vs:moreinfo "core term";
vs:term_status "stable".
rev:type a rdf:Property;
rdfs:comment "The type of media of a work under review";
rdfs:isDefinedBy ;
rdfs:label "type";
vs:moreinfo "core term";
vs:term_status "stable".
#########################################################################
# Import of the Time Ontology schema (from http://www.w3.org/TR/owl-time)
time:Instant
a rdfs:Class.
time:inXSDDateTime
rdfs:domain time:Instant;
rdfs:range xsd:dateTime.