For no other particular reason than that I like the definitions of
XFN∞ better than those of
FOAF∞, I created an RDF schema for XFN. I like to use FOAF or XFN in example files, so that's not "real" use, but perhaps someone may appreciate this anyway.
I did not define ranges or domains for predicates, and only defined owl:
SymmetryProperty if something was really always symmetrical (not "often" or "usually").
Here is the schema and an example file. I don't claim copyright, simply because that is already claimed by the authors of XFN. Actually, I'm not even sure if I'm allowed to do this -- their distribution policies says that I'm not allowed to make derivate works. (I did try not to change anything, really, though I changed one instance of URL to URI!). I'm I now getting sued?
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE rdf:RDF>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:dcterms="http://purl.org/dc/terms/"
>
<rdf:Description rdf:about="http://gmpg.org/xfn/1">
<rdfs:isDefinedBy rdf:resource="http://gmpg.org/xfn/1/xfn.rdf"/>
<dc:title xml:lang="en">XHTML Friends Network (XFN) schema</dc:title>
<dc:description xml:lang="en">XFN outlines the relationships between individuals by defining a small set of values that describe personal relationships.</dc:description>
<dc:publisher xml:lang="en">Global Multimedia Protocols Group</dc:publisher>
<dcterms:issued>2003-01-01</dcterms:issued>
<dcterms:modified>2003-01-01</dcterms:modified>
<owl:versionInfo>1.1</owl:versionInfo>
</rdf:Description>
<!-- Friendship -->
<rdf:Property rdf:about="http://gmpg.org/xfn/1#friend">
<rdfs:label xml:lang="en">Friend</rdfs:label>
<dc:description xml:lang="en">Someone you are a friend to. A compatriot, buddy, home(boy|girl) that you know.</dc:description>
<rdfs:comment xml:lang="en">Friend is in many ways the most difficult value to describe. Aristotle said that "Wishing to be friends is quick work, but friendship is a slow ripening fruit. Just as fruits may ripen at different times, the line between acquaintance and friend will vary from person to person. Joe might consider someone a friend after one good conversation or shared experience, while Grace may feel that the classification of "friend" should be reserved for someone with whom she converses daily and has established a great degree of trust.</rdfs:comment>
</rdf:Property>
<rdf:Property rdf:about="http://gmpg.org/xfn/1#acquaintance">
<rdfs:label xml:lang="en">Acquaintance</rdfs:label>
<dc:description xml:lang="en">Someone who you have exchanged greetings and not much (if any) more -- maybe a short conversation or two.</dc:description>
<rdfs:comment xml:lang="en">Acquaintance implies a mutual familiarity and an individual's definition is not likely to vary significantly from person to person, therefore it suggests symmetry but doesn't possess it by definition. friend should be stronger in implied symmetry. Because of aforementioned variances, it is more likely that there will be disparities (or mis-matches) with the friend value than most others. You should not be offended if someone doesn't reciprocate a friend value, because even though you may feel the same about your relationship with each other, you may just have different ideas of what a friendship entails. Or they may just have forgotten.</rdfs:comment>
<rdfs:seeAlso rdf:resource="http://xmlns.com/foaf/0.1/knows"/>
</rdf:Property>
<rdf:Property rdf:about="http://gmpg.org/xfn/1#contact">
<rdfs:label xml:lang="en">Contact</rdfs:label>
<dc:description xml:lang="en">Someone you know how to get in touch with. Often symmetric.</dc:description>
<rdfs:comment xml:lang="en">Contact simply refers to someone with whom you can get in touch, because you have their contact information. This value could be very useful in online address books, or in professional networks where the intent is to determine who can get in touch with whom. This is a new value in XFN 1.1 and represents an even less familiar relationship than "acquaintance". And for something lighter still, try met.</rdfs:comment>
</rdf:Property>
<!-- Physical -->
<rdf:Property rdf:about="http://gmpg.org/xfn/1#met">
<rdfs:label xml:lang="en">Met</rdfs:label>
<dc:description xml:lang="en">Someone who you have actually met in person.</dc:description>
<rdfs:comment xml:lang="en">Met is most likely the value easiest to claim. It is very straight-forward; either you have met someone in person (or IRL as we sometimes say) or you haven't. met can indeed exist independently of every other value, including, though not likely, spouse. This value (and indeed the genesis of XFN) was inspired by a comment made by John Halcyon Styn during the SxSW 2003 session "Beyond the Blog."</rdfs:comment>
</rdf:Property>
<!-- Professional -->
<rdf:Property rdf:about="http://gmpg.org/xfn/1#co-worker">
<rdfs:label xml:lang="en">Co-worker</rdfs:label>
<dc:description xml:lang="en">Someone who you work with or works at the same organization as you.</dc:description>
<rdfs:comment xml:lang="en">Co-worker describes a person who shares an employer with you. This could be a member of your office team, your division, or simply works for the same company. It can also describe your manager, your subordinates, the CEO, and anyone else at your workplace. Note also that this value is not geographically limited, so a co-worker can be someone who is located in a different city or country.</rdfs:comment>
</rdf:Property>
<rdf:Property rdf:about="http://gmpg.org/xfn/1#colleague">
<rdfs:label xml:lang="en">Colleague</rdfs:label>
<dc:description xml:lang="en">Someone in the same field of study or activity.</dc:description>
<rdfs:comment xml:lang="en">Colleague refer to a person who you regard as a peer; that is, someone who you feel is on your level and has skills and interests similar to your own. A colleague does not have to be a co-worker, although of course can be. For example: two doctors and a lawyer are members of a quilting circle. While they all share an interest in quilting, only the two doctors are colleagues, whereas the lawyer is colleague to neither of them (and vice versa).</rdfs:comment>
</rdf:Property>
<!-- Geographical -->
<rdf:Property rdf:about="http://gmpg.org/xfn/1#co-resident">
<rdfs:label xml:lang="en">Co-resident</rdfs:label>
<dc:description xml:lang="en">Someone you share a street address with.</dc:description>
<rdfs:comment xml:lang="en">Co-resident is pretty specific insofar that it dictates that you share a street address with the person you're referring to. This is broad enough to allow for co-residents with the same apartment building and such, yet still specific enough to suggest the relationship is effected by the close proximity. Co-resident is symmetric.</rdfs:comment>
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#SymmetricProperty"/>
</rdf:Property>
<rdf:Property rdf:about="http://gmpg.org/xfn/1#neighbor">
<rdfs:label xml:lang="en-US">Neighbor</rdfs:label>
<rdfs:label xml:lang="en-GB">Neighbour</rdfs:label>
<dc:description xml:lang="en">Someone who lives nearby, perhaps only at an adjacent street address or doorway.</dc:description>
<rdfs:comment xml:lang="en">Neighbor is much broader than co-resident, and deliberately so. Different people may have different definitions of what "neighbor" might mean to them, and they are all valid. Some might consider neighbor in the very strict sense of being someone you live next door to, others might take a more Mr. Rogers approach to the concept of neighbor and extend it further, though to fit with XFN it should still have definite geographical connotations. Due to possible various personal interpretations of this value, it is not necessarily symmetric, though it certainly may be.</rdfs:comment>
</rdf:Property>
<!-- Family -->
<rdf:Property rdf:about="http://gmpg.org/xfn/1#kin">
<rdfs:label xml:lang="en">Kin</rdfs:label>
<dc:description xml:lang="en">A relative, someone you consider part of your extended family. Symmetric and typically transitive.</dc:description>
<rdfs:comment xml:lang="en">Kin is a generic term that describes any relative of yours. This could be a 'blood relation' or someone to whom you are related by marriage.</rdfs:comment>
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#SymmetricProperty"/>
</rdf:Property>
<rdf:Property rdf:about="http://gmpg.org/xfn/1#child">
<rdfs:label xml:lang="en">Child</rdfs:label>
<dc:description xml:lang="en">A person's genetic offspring, or someone that a person has adopted and takes care of.</dc:description>
<rdfs:comment xml:lang="en">Child means that the person to who you are linking is someone you parented. Note that this does not require that you actually be the biological parent of the child; adoptive children also qualify.</rdfs:comment>
<owl:inverseOf rdf:resource="http://gmpg.org/xfn/1#parent"/>
<rdfs:subPropertyOf rdf:resource="http://gmpg.org/xfn/1#kin"/>
</rdf:Property>
<rdf:Property rdf:about="http://gmpg.org/xfn/1#parent">
<rdfs:label xml:lang="en">Parent</rdfs:label>
<dc:description xml:lang="en">A person's progenitor, or someone who has adopted and takes care (or took care) of you.</dc:description>
<rdfs:comment xml:lang="en">Parent is the inverse of child, and refers to a person who parented you, whether biological or adoptive.</rdfs:comment>
<owl:inverseOf rdf:resource="http://gmpg.org/xfn/1#child"/>
<rdfs:subPropertyOf rdf:resource="http://gmpg.org/xfn/1#kin"/>
</rdf:Property>
<rdf:Property rdf:about="http://gmpg.org/xfn/1#sibling">
<rdfs:label xml:lang="en">Sibling</rdfs:label>
<dc:description xml:lang="en">Someone a person shares a parent with.</dc:description>
<rdfs:comment xml:lang="en">Sibling refers to a person with whom you share a parent. Brothers, sisters, half-brothers, and half-sisters are all examples of siblings.</rdfs:comment>
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#SymmetricProperty"/>
<rdfs:subPropertyOf rdf:resource="http://gmpg.org/xfn/1#kin"/>
</rdf:Property>
<rdf:Property rdf:about="http://gmpg.org/xfn/1#spouse">
<rdfs:label xml:lang="en">Spouse</rdfs:label>
<dc:description xml:lang="en">Someone you are married to.</dc:description>
<rdfs:comment xml:lang="en">Spouse refers to a person to whom you feel yourself to be married, whether legally or not. The use of spouse should be symmetric. A spouse could also be considered a romantic value, however, we concluded that a major difference between spouse and the other romantic values is that a spouse is considered to be part of a family, whereas this is not typically true for the other romantic values. Also, though typically a 1:1 relationship, some localities, cultures (and subcultures) permit and encourage one to many spousal relationships. We leave such complexities up to individual choice and judgment.</rdfs:comment>
<rdfs:subPropertyOf rdf:resource="http://gmpg.org/xfn/1#kin"/>
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#SymmetricProperty"/>
</rdf:Property>
<!-- Romantic -->
<rdf:Property rdf:about="http://gmpg.org/xfn/1#muse">
<rdfs:label xml:lang="en">Muse</rdfs:label>
<dc:description xml:lang="en">Someone who brings you inspiration.</dc:description>
<rdfs:comment xml:lang="en">Muse describes a person who inspires you in some way. This may not be a strictly romantic or erotic type of inspiration, but might also be used to describe a person who has provided you with professional inspiration. The value landed in the romantic section because inspiration is a romantic concept in the general sense (rather than a rational concept).</rdfs:comment>
</rdf:Property>
<rdf:Property rdf:about="http://gmpg.org/xfn/1#crush">
<rdfs:label xml:lang="en">Crush</rdfs:label>
<dc:description xml:lang="en">Someone you have a crush on.</dc:description>
<rdfs:comment xml:lang="en">Crush refers to a person to whom you are attracted, perhaps even strongly, but who might not express the same feeling in return, or even know that you exist. Crushes are also usually secret, which makes their inclusion in XFN (a public data set) somewhat interesting. We expect that the use of crush in XFN will be in a teasing manner, as between two friends who like to flirt but do not actually date.</rdfs:comment>
</rdf:Property>
<rdf:Property rdf:about="http://gmpg.org/xfn/1#date">
<rdfs:label xml:lang="en">Date</rdfs:label>
<dc:description xml:lang="en">Someone you are dating.</dc:description>
<rdfs:comment xml:lang="en">Date is used to refer to a person you are dating; that is, whom you see on a regular basis. This usually means that you specially arrange times and places to see the other person, such as going out to dinner and a movie, or going to see the orchestra together. What distinguishes this from ordinary friendship is that there is a romantic component involved. We do not take a position on exclusivity here: a single person can mark any number of others as being a date. Whether or not they should is up to the people involved.</rdfs:comment>
</rdf:Property>
<rdf:Property rdf:about="http://gmpg.org/xfn/1#sweetheart">
<rdfs:label xml:lang="en">Sweetheart</rdfs:label>
<dc:description xml:lang="en">Someone with whom you are intimate and at least somewhat committed, possibly exclusively.</dc:description>
<rdfs:comment xml:lang="en">Sweetheart describes a person with whom you are intimate, whether physically or emotionally, and to whom you are committed to some degree. As with date, there is no requirement that sweetheart apply to a single person, although it is typical that a person will have only one romantic sweetheart at a time. This value was the best gender-neutral term we could find to represent the more common terms "girlfriend" and "boyfriend," which it is meant to represent, as well as informal terms like "snookums", "honey", "pumpkin", and "sweetie-pie".</rdfs:comment>
</rdf:Property>
<!-- Identity -->
<rdf:Property rdf:about="http://gmpg.org/xfn/1#me">
<rdfs:label xml:lang="en">Me</rdfs:label>
<dc:description xml:lang="en">A link to yourself at a different URI. Exclusive of all other XFN values. Required symmetric.</dc:description>
<rdfs:comment xml:lang="en">Me is used to indicate that the link points to a site for which you are responsible. This is useful when pointing to various profiles on social-networking sites, for example, or when pointing between two different blogs run by the same person. Note that use of this value is exclusive of all other XFN values; thus, you cannot declare me and co-resident to the same subject even though it is to be hoped that you are in fact co-resident with yourself.
</rdfs:comment>
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#SymmetricProperty"/>
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#TransitiveProperty"/>
<owl:equivalentProperty rdf:resource="http://www.w3.org/2002/07/owl#sameAs"/>
<!-- xfn:me has the same meaning as owl:sameAs -->
</rdf:Property>
</rdf:RDF>
Example usage of the XFN schema:
<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF
xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'
xmlns:rdfs='http://www.w3.org/2000/01/rdf-schema#'
xmlns:foaf='http://xmlns.com/foaf/0.1/'
xmlns:xfn='http://gmpg.org/xfn/1#'
>
<foaf:Person rdf:about="#john">
<rdfs:label xml:lang="en-GB">john</rdfs:label>
<foaf:name>John Doe</foaf:name>
<xfn:spouse rdf:resource="#jane"/>
<xfn:met rdf:resource="#jane"/>
</foaf:Person>
<foaf:Person rdf:about="#jane">
<rdfs:label xml:lang="en-GB">jane</rdfs:label>
<foaf:name>Jane Doe</foaf:name>
<xfn:spouse rdf:resource="#john"/>
<xfn:met rdf:resource="#john"/>
<xfn:met rdf:resource="#tarzan"/>
</foaf:Person>
<foaf:Person rdf:about="#tarzan">
<rdfs:label xml:lang="en-GB">tarzan</rdfs:label>
<foaf:name>Tarzan</foaf:name>
<xfn:crush rdf:resource="#jane"/>
<xfn:met rdf:resource="#jane"/>
<xfn:met rdf:resource="#john"/> <!-- intentionally not symmetric in this example-->
</foaf:Person>
</rdf:RDF>
There are no comments on this page. [Add comment]