Creating a triple for http://schema.org/workLocation

I am creating a Turtle file that will contain triples for a specific person like schema: Person .

I am stuck in defining a triple for a human schema: workLocation. According to the documentation, the range of schema: workLocation includes the scheme: Place , and in the place there can be a scheme: address , which should be of the type scheme: PostalAddress . I created the following:

@prefix schema: <http://schema.org/> .
<http://www.example.com/ns/person/1> a schema:Person ;
                                     schema:givenName "XXX" ;
                                     schema:familyName "XXXX" ;
                                     schema:addressCountry "USA" .

Is this the correct way to describe an address? How to indicate the location of a person?

+4
source share
1 answer

, , . :

@prefix schema: <http://schema.org/> .
@prefix : <http://stackoverflow.com/q/24891549/1281433/> .

:person1 a schema:Person .

. , Place ContactPoint. , . :

:person1 schema:workLocation :place62 .
:place62 a schema:Place .

PostalAddress schema: address:

:place62 schema:address :address89 .
:address89 a schema:PostalAddress .

, PostalAddress. - ( ):

:address89 schema:addressLocality "Mountain View" .
:address89 schema:addressRegion "CA" .
:address89 schema:postalCode "94043" .
:address89 schema:streetAddress "1600 Amphitheathre Pkwy" .

ContactPoint, , . , :

@prefix schema: <http://schema.org/> .
@prefix : <http://stackoverflow.com/q/24891549/1281433/> .

:person1 a schema:Person .
:person1 schema:workLocation :place62 .
:place62 a schema:Place .
:place62 schema:address :address89 .
:address89 a schema:PostalAddress .
:address89 schema:addressLocality "Mountain View" .
:address89 schema:addressRegion "CA" .
:address89 schema:postalCode "94043" .
:address89 schema:streetAddress "1600 Amphitheathre Pkwy" .

( , ), , , URI. , , :

@prefix schema: <http://schema.org/> .
@prefix : <http://stackoverflow.com/q/24891549/1281433/> .

:person1 a schema:Person ;
         schema:workLocation [ a schema:Place ;
                               schema:address [ a schema:PostalAddress ;
                                                schema:addressLocality "Mountain View" ;
                                                schema:addressRegion "CA" ;
                                                schema:postalCode "94043" ;
                                                schema:streetAddress "1600 Amphitheathre Pkwy" ] ] .
+3

All Articles