-
Notifications
You must be signed in to change notification settings - Fork 0
/
agent.rq
29 lines (28 loc) · 1.02 KB
/
agent.rq
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
PREFIX dct: <http://purl.org/dc/terms/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX locn: <http://www.w3.org/ns/locn#>
PREFIX org: <http://www.w3.org/ns/org#>
PREFIX schema: <http://schema.org/>
CONSTRUCT {
?Agent
a ?schemaPerson ;
a ?schemaOrganization ;
schema:name ?name ;
# schema:?? ?AgentType ;
schema:address ?AgentAddress ;
schema:memberOf ?Affiliation ;
schema:email ?email ;
schema:url ?workplaceHomepage ;
schema:telephone ?phone
} WHERE {
OPTIONAL { ?Agent a foaf:Agent . }
OPTIONAL { ?Agent a foaf:Person BIND(schema:Person AS ?schemaPerson) . }
OPTIONAL { ?Agent a foaf:Organization BIND(schema:Organization AS ?schemaOrganization) . }
OPTIONAL { ?Agent foaf:name ?name . }
# OPTIONAL { ?Agent dct:type ?AgentType . }
OPTIONAL { ?Agent locn:address ?AgentAddress . }
OPTIONAL { ?Agent org:memberOf ?Affiliation . }
OPTIONAL { ?Agent foaf:mbox ?email . }
OPTIONAL { ?Agent foaf:workplaceHomepage ?workplaceHomepage . }
OPTIONAL { ?Agent foaf:phone ?phone . }
}