123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390(*********************************************************************************)(* OCaml-RDF *)(* *)(* Copyright (C) 2012-2024 Institut National de Recherche en Informatique *)(* et en Automatique. All rights reserved. *)(* *)(* This program is free software; you can redistribute it and/or modify *)(* it under the terms of the GNU Lesser General Public License version *)(* 3 as published by the Free Software Foundation. *)(* *)(* This program is distributed in the hope that it will be useful, *)(* but WITHOUT ANY WARRANTY; without even the implied warranty of *)(* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *)(* GNU General Public License for more details. *)(* *)(* You should have received a copy of the GNU General Public License *)(* along with this program; if not, write to the Free Software *)(* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA *)(* 02111-1307 USA *)(* *)(* Contact: Maxence.Guesdon@inria.fr *)(* *)(*********************************************************************************)letfoaf_str="http://xmlns.com/foaf/0.1/";;letfoaf=Iri.of_stringfoaf_str;;letfoaf_s=Iri.of_string(foaf_str^s);;letc_Agent=foaf_"Agent";;letc_Document=foaf_"Document";;letc_Group=foaf_"Group";;letc_Image=foaf_"Image";;letc_LabelProperty=foaf_"LabelProperty";;letc_OnlineAccount=foaf_"OnlineAccount";;letc_OnlineChatAccount=foaf_"OnlineChatAccount";;letc_OnlineEcommerceAccount=foaf_"OnlineEcommerceAccount";;letc_OnlineGamingAccount=foaf_"OnlineGamingAccount";;letc_Organization=foaf_"Organization";;letc_Person=foaf_"Person";;letc_PersonalProfileDocument=foaf_"PersonalProfileDocument";;letc_Project=foaf_"Project";;letaccount=foaf_"account";;letaccountName=foaf_"accountName";;letaccountServiceHomepage=foaf_"accountServiceHomepage";;letage=foaf_"age";;letaimChatID=foaf_"aimChatID";;letbased_near=foaf_"based_near";;letbirthday=foaf_"birthday";;letcurrentProject=foaf_"currentProject";;letdepiction=foaf_"depiction";;letdepicts=foaf_"depicts";;letdnaChecksum=foaf_"dnaChecksum";;letfamilyName=foaf_"familyName";;letfamily_name=foaf_"family_name";;letfirstName=foaf_"firstName";;letfocus=foaf_"focus";;letfundedBy=foaf_"fundedBy";;letgeekcode=foaf_"geekcode";;letgender=foaf_"gender";;letgivenName=foaf_"givenName";;letgivenname=foaf_"givenname";;letholdsAccount=foaf_"holdsAccount";;lethomepage=foaf_"homepage";;leticqChatID=foaf_"icqChatID";;letimg=foaf_"img";;letinterest=foaf_"interest";;letisPrimaryTopicOf=foaf_"isPrimaryTopicOf";;letjabberID=foaf_"jabberID";;letknows=foaf_"knows";;letlastName=foaf_"lastName";;letlogo=foaf_"logo";;letmade=foaf_"made";;letmaker=foaf_"maker";;letmbox=foaf_"mbox";;letmbox_sha1sum=foaf_"mbox_sha1sum";;letmember=foaf_"member";;letmembershipClass=foaf_"membershipClass";;letmsnChatID=foaf_"msnChatID";;letmyersBriggs=foaf_"myersBriggs";;letname=foaf_"name";;letnick=foaf_"nick";;letopenid=foaf_"openid";;letpage=foaf_"page";;letpastProject=foaf_"pastProject";;letphone=foaf_"phone";;letplan=foaf_"plan";;letprimaryTopic=foaf_"primaryTopic";;letpublications=foaf_"publications";;letschoolHomepage=foaf_"schoolHomepage";;letsha1=foaf_"sha1";;letskypeID=foaf_"skypeID";;letstatus=foaf_"status";;letsurname=foaf_"surname";;lettheme=foaf_"theme";;letthumbnail=foaf_"thumbnail";;lettipjar=foaf_"tipjar";;lettitle=foaf_"title";;lettopic=foaf_"topic";;lettopic_interest=foaf_"topic_interest";;letweblog=foaf_"weblog";;letworkInfoHomepage=foaf_"workInfoHomepage";;letworkplaceHomepage=foaf_"workplaceHomepage";;letyahooChatID=foaf_"yahooChatID";;moduleOpen=structletfoaf_c_Agent=c_Agentletfoaf_c_Document=c_Documentletfoaf_c_Group=c_Groupletfoaf_c_Image=c_Imageletfoaf_c_LabelProperty=c_LabelPropertyletfoaf_c_OnlineAccount=c_OnlineAccountletfoaf_c_OnlineChatAccount=c_OnlineChatAccountletfoaf_c_OnlineEcommerceAccount=c_OnlineEcommerceAccountletfoaf_c_OnlineGamingAccount=c_OnlineGamingAccountletfoaf_c_Organization=c_Organizationletfoaf_c_Person=c_Personletfoaf_c_PersonalProfileDocument=c_PersonalProfileDocumentletfoaf_c_Project=c_Projectletfoaf_account=accountletfoaf_accountName=accountNameletfoaf_accountServiceHomepage=accountServiceHomepageletfoaf_age=ageletfoaf_aimChatID=aimChatIDletfoaf_based_near=based_nearletfoaf_birthday=birthdayletfoaf_currentProject=currentProjectletfoaf_depiction=depictionletfoaf_depicts=depictsletfoaf_dnaChecksum=dnaChecksumletfoaf_familyName=familyNameletfoaf_family_name=family_nameletfoaf_firstName=firstNameletfoaf_focus=focusletfoaf_fundedBy=fundedByletfoaf_geekcode=geekcodeletfoaf_gender=genderletfoaf_givenName=givenNameletfoaf_givenname=givennameletfoaf_holdsAccount=holdsAccountletfoaf_homepage=homepageletfoaf_icqChatID=icqChatIDletfoaf_img=imgletfoaf_interest=interestletfoaf_isPrimaryTopicOf=isPrimaryTopicOfletfoaf_jabberID=jabberIDletfoaf_knows=knowsletfoaf_lastName=lastNameletfoaf_logo=logoletfoaf_made=madeletfoaf_maker=makerletfoaf_mbox=mboxletfoaf_mbox_sha1sum=mbox_sha1sumletfoaf_member=memberletfoaf_membershipClass=membershipClassletfoaf_msnChatID=msnChatIDletfoaf_myersBriggs=myersBriggsletfoaf_name=nameletfoaf_nick=nickletfoaf_openid=openidletfoaf_page=pageletfoaf_pastProject=pastProjectletfoaf_phone=phoneletfoaf_plan=planletfoaf_primaryTopic=primaryTopicletfoaf_publications=publicationsletfoaf_schoolHomepage=schoolHomepageletfoaf_sha1=sha1letfoaf_skypeID=skypeIDletfoaf_status=statusletfoaf_surname=surnameletfoaf_theme=themeletfoaf_thumbnail=thumbnailletfoaf_tipjar=tipjarletfoaf_title=titleletfoaf_topic=topicletfoaf_topic_interest=topic_interestletfoaf_weblog=weblogletfoaf_workInfoHomepage=workInfoHomepageletfoaf_workplaceHomepage=workplaceHomepageletfoaf_yahooChatID=yahooChatIDendclassfrom?subg=letsub=matchsubwithNone->Term.Iri(g.Graph.name())|Somet->tinobject(self)methodaccount=g.Graph.objects_of~sub~pred:accountmethodaccount_opt=matchself#accountwith[]->None|x::_->Somexmethodaccount_iris=Graph.only_iris(self#account)methodaccount_opt_iri=matchself#account_iriswith[]->None|x::_->SomexmethodaccountName=Graph.literal_objects_ofg~sub~pred:accountNamemethodaccountName_opt=matchself#accountNamewith[]->None|x::_->SomexmethodaccountServiceHomepage=g.Graph.objects_of~sub~pred:accountServiceHomepagemethodaccountServiceHomepage_opt=matchself#accountServiceHomepagewith[]->None|x::_->SomexmethodaccountServiceHomepage_iris=Graph.only_iris(self#accountServiceHomepage)methodaccountServiceHomepage_opt_iri=matchself#accountServiceHomepage_iriswith[]->None|x::_->Somexmethodage=Graph.literal_objects_ofg~sub~pred:agemethodage_opt=matchself#agewith[]->None|x::_->SomexmethodaimChatID=Graph.literal_objects_ofg~sub~pred:aimChatIDmethodaimChatID_opt=matchself#aimChatIDwith[]->None|x::_->Somexmethodbased_near=g.Graph.objects_of~sub~pred:based_nearmethodbased_near_opt=matchself#based_nearwith[]->None|x::_->Somexmethodbased_near_iris=Graph.only_iris(self#based_near)methodbased_near_opt_iri=matchself#based_near_iriswith[]->None|x::_->Somexmethodbirthday=Graph.literal_objects_ofg~sub~pred:birthdaymethodbirthday_opt=matchself#birthdaywith[]->None|x::_->SomexmethodcurrentProject=g.Graph.objects_of~sub~pred:currentProjectmethodcurrentProject_opt=matchself#currentProjectwith[]->None|x::_->SomexmethodcurrentProject_iris=Graph.only_iris(self#currentProject)methodcurrentProject_opt_iri=matchself#currentProject_iriswith[]->None|x::_->Somexmethoddepiction=g.Graph.objects_of~sub~pred:depictionmethoddepiction_opt=matchself#depictionwith[]->None|x::_->Somexmethoddepiction_iris=Graph.only_iris(self#depiction)methoddepiction_opt_iri=matchself#depiction_iriswith[]->None|x::_->Somexmethoddepicts=g.Graph.objects_of~sub~pred:depictsmethoddepicts_opt=matchself#depictswith[]->None|x::_->Somexmethoddepicts_iris=Graph.only_iris(self#depicts)methoddepicts_opt_iri=matchself#depicts_iriswith[]->None|x::_->SomexmethoddnaChecksum=Graph.literal_objects_ofg~sub~pred:dnaChecksummethoddnaChecksum_opt=matchself#dnaChecksumwith[]->None|x::_->SomexmethodfamilyName=Graph.literal_objects_ofg~sub~pred:familyNamemethodfamilyName_opt=matchself#familyNamewith[]->None|x::_->Somexmethodfamily_name=Graph.literal_objects_ofg~sub~pred:family_namemethodfamily_name_opt=matchself#family_namewith[]->None|x::_->SomexmethodfirstName=Graph.literal_objects_ofg~sub~pred:firstNamemethodfirstName_opt=matchself#firstNamewith[]->None|x::_->Somexmethodfocus=g.Graph.objects_of~sub~pred:focusmethodfocus_opt=matchself#focuswith[]->None|x::_->Somexmethodfocus_iris=Graph.only_iris(self#focus)methodfocus_opt_iri=matchself#focus_iriswith[]->None|x::_->SomexmethodfundedBy=g.Graph.objects_of~sub~pred:fundedBymethodfundedBy_opt=matchself#fundedBywith[]->None|x::_->SomexmethodfundedBy_iris=Graph.only_iris(self#fundedBy)methodfundedBy_opt_iri=matchself#fundedBy_iriswith[]->None|x::_->Somexmethodgeekcode=Graph.literal_objects_ofg~sub~pred:geekcodemethodgeekcode_opt=matchself#geekcodewith[]->None|x::_->Somexmethodgender=Graph.literal_objects_ofg~sub~pred:gendermethodgender_opt=matchself#genderwith[]->None|x::_->SomexmethodgivenName=g.Graph.objects_of~sub~pred:givenNamemethodgivenName_opt=matchself#givenNamewith[]->None|x::_->SomexmethodgivenName_iris=Graph.only_iris(self#givenName)methodgivenName_opt_iri=matchself#givenName_iriswith[]->None|x::_->Somexmethodgivenname=g.Graph.objects_of~sub~pred:givennamemethodgivenname_opt=matchself#givennamewith[]->None|x::_->Somexmethodgivenname_iris=Graph.only_iris(self#givenname)methodgivenname_opt_iri=matchself#givenname_iriswith[]->None|x::_->SomexmethodholdsAccount=g.Graph.objects_of~sub~pred:holdsAccountmethodholdsAccount_opt=matchself#holdsAccountwith[]->None|x::_->SomexmethodholdsAccount_iris=Graph.only_iris(self#holdsAccount)methodholdsAccount_opt_iri=matchself#holdsAccount_iriswith[]->None|x::_->Somexmethodhomepage=g.Graph.objects_of~sub~pred:homepagemethodhomepage_opt=matchself#homepagewith[]->None|x::_->Somexmethodhomepage_iris=Graph.only_iris(self#homepage)methodhomepage_opt_iri=matchself#homepage_iriswith[]->None|x::_->SomexmethodicqChatID=Graph.literal_objects_ofg~sub~pred:icqChatIDmethodicqChatID_opt=matchself#icqChatIDwith[]->None|x::_->Somexmethodimg=g.Graph.objects_of~sub~pred:imgmethodimg_opt=matchself#imgwith[]->None|x::_->Somexmethodimg_iris=Graph.only_iris(self#img)methodimg_opt_iri=matchself#img_iriswith[]->None|x::_->Somexmethodinterest=g.Graph.objects_of~sub~pred:interestmethodinterest_opt=matchself#interestwith[]->None|x::_->Somexmethodinterest_iris=Graph.only_iris(self#interest)methodinterest_opt_iri=matchself#interest_iriswith[]->None|x::_->SomexmethodisPrimaryTopicOf=g.Graph.objects_of~sub~pred:isPrimaryTopicOfmethodisPrimaryTopicOf_opt=matchself#isPrimaryTopicOfwith[]->None|x::_->SomexmethodisPrimaryTopicOf_iris=Graph.only_iris(self#isPrimaryTopicOf)methodisPrimaryTopicOf_opt_iri=matchself#isPrimaryTopicOf_iriswith[]->None|x::_->SomexmethodjabberID=Graph.literal_objects_ofg~sub~pred:jabberIDmethodjabberID_opt=matchself#jabberIDwith[]->None|x::_->Somexmethodknows=g.Graph.objects_of~sub~pred:knowsmethodknows_opt=matchself#knowswith[]->None|x::_->Somexmethodknows_iris=Graph.only_iris(self#knows)methodknows_opt_iri=matchself#knows_iriswith[]->None|x::_->SomexmethodlastName=Graph.literal_objects_ofg~sub~pred:lastNamemethodlastName_opt=matchself#lastNamewith[]->None|x::_->Somexmethodlogo=g.Graph.objects_of~sub~pred:logomethodlogo_opt=matchself#logowith[]->None|x::_->Somexmethodlogo_iris=Graph.only_iris(self#logo)methodlogo_opt_iri=matchself#logo_iriswith[]->None|x::_->Somexmethodmade=g.Graph.objects_of~sub~pred:mademethodmade_opt=matchself#madewith[]->None|x::_->Somexmethodmade_iris=Graph.only_iris(self#made)methodmade_opt_iri=matchself#made_iriswith[]->None|x::_->Somexmethodmaker=g.Graph.objects_of~sub~pred:makermethodmaker_opt=matchself#makerwith[]->None|x::_->Somexmethodmaker_iris=Graph.only_iris(self#maker)methodmaker_opt_iri=matchself#maker_iriswith[]->None|x::_->Somexmethodmbox=g.Graph.objects_of~sub~pred:mboxmethodmbox_opt=matchself#mboxwith[]->None|x::_->Somexmethodmbox_iris=Graph.only_iris(self#mbox)methodmbox_opt_iri=matchself#mbox_iriswith[]->None|x::_->Somexmethodmbox_sha1sum=Graph.literal_objects_ofg~sub~pred:mbox_sha1summethodmbox_sha1sum_opt=matchself#mbox_sha1sumwith[]->None|x::_->Somexmethodmember=g.Graph.objects_of~sub~pred:membermethodmember_opt=matchself#memberwith[]->None|x::_->Somexmethodmember_iris=Graph.only_iris(self#member)methodmember_opt_iri=matchself#member_iriswith[]->None|x::_->SomexmethodmembershipClass=g.Graph.objects_of~sub~pred:membershipClassmethodmembershipClass_opt=matchself#membershipClasswith[]->None|x::_->SomexmethodmembershipClass_iris=Graph.only_iris(self#membershipClass)methodmembershipClass_opt_iri=matchself#membershipClass_iriswith[]->None|x::_->SomexmethodmsnChatID=Graph.literal_objects_ofg~sub~pred:msnChatIDmethodmsnChatID_opt=matchself#msnChatIDwith[]->None|x::_->SomexmethodmyersBriggs=Graph.literal_objects_ofg~sub~pred:myersBriggsmethodmyersBriggs_opt=matchself#myersBriggswith[]->None|x::_->Somexmethodname=Graph.literal_objects_ofg~sub~pred:namemethodname_opt=matchself#namewith[]->None|x::_->Somexmethodnick=g.Graph.objects_of~sub~pred:nickmethodnick_opt=matchself#nickwith[]->None|x::_->Somexmethodnick_iris=Graph.only_iris(self#nick)methodnick_opt_iri=matchself#nick_iriswith[]->None|x::_->Somexmethodopenid=g.Graph.objects_of~sub~pred:openidmethodopenid_opt=matchself#openidwith[]->None|x::_->Somexmethodopenid_iris=Graph.only_iris(self#openid)methodopenid_opt_iri=matchself#openid_iriswith[]->None|x::_->Somexmethodpage=g.Graph.objects_of~sub~pred:pagemethodpage_opt=matchself#pagewith[]->None|x::_->Somexmethodpage_iris=Graph.only_iris(self#page)methodpage_opt_iri=matchself#page_iriswith[]->None|x::_->SomexmethodpastProject=g.Graph.objects_of~sub~pred:pastProjectmethodpastProject_opt=matchself#pastProjectwith[]->None|x::_->SomexmethodpastProject_iris=Graph.only_iris(self#pastProject)methodpastProject_opt_iri=matchself#pastProject_iriswith[]->None|x::_->Somexmethodphone=g.Graph.objects_of~sub~pred:phonemethodphone_opt=matchself#phonewith[]->None|x::_->Somexmethodphone_iris=Graph.only_iris(self#phone)methodphone_opt_iri=matchself#phone_iriswith[]->None|x::_->Somexmethodplan=Graph.literal_objects_ofg~sub~pred:planmethodplan_opt=matchself#planwith[]->None|x::_->SomexmethodprimaryTopic=g.Graph.objects_of~sub~pred:primaryTopicmethodprimaryTopic_opt=matchself#primaryTopicwith[]->None|x::_->SomexmethodprimaryTopic_iris=Graph.only_iris(self#primaryTopic)methodprimaryTopic_opt_iri=matchself#primaryTopic_iriswith[]->None|x::_->Somexmethodpublications=g.Graph.objects_of~sub~pred:publicationsmethodpublications_opt=matchself#publicationswith[]->None|x::_->Somexmethodpublications_iris=Graph.only_iris(self#publications)methodpublications_opt_iri=matchself#publications_iriswith[]->None|x::_->SomexmethodschoolHomepage=g.Graph.objects_of~sub~pred:schoolHomepagemethodschoolHomepage_opt=matchself#schoolHomepagewith[]->None|x::_->SomexmethodschoolHomepage_iris=Graph.only_iris(self#schoolHomepage)methodschoolHomepage_opt_iri=matchself#schoolHomepage_iriswith[]->None|x::_->Somexmethodsha1=g.Graph.objects_of~sub~pred:sha1methodsha1_opt=matchself#sha1with[]->None|x::_->Somexmethodsha1_iris=Graph.only_iris(self#sha1)methodsha1_opt_iri=matchself#sha1_iriswith[]->None|x::_->SomexmethodskypeID=Graph.literal_objects_ofg~sub~pred:skypeIDmethodskypeID_opt=matchself#skypeIDwith[]->None|x::_->Somexmethodstatus=Graph.literal_objects_ofg~sub~pred:statusmethodstatus_opt=matchself#statuswith[]->None|x::_->Somexmethodsurname=Graph.literal_objects_ofg~sub~pred:surnamemethodsurname_opt=matchself#surnamewith[]->None|x::_->Somexmethodtheme=g.Graph.objects_of~sub~pred:thememethodtheme_opt=matchself#themewith[]->None|x::_->Somexmethodtheme_iris=Graph.only_iris(self#theme)methodtheme_opt_iri=matchself#theme_iriswith[]->None|x::_->Somexmethodthumbnail=g.Graph.objects_of~sub~pred:thumbnailmethodthumbnail_opt=matchself#thumbnailwith[]->None|x::_->Somexmethodthumbnail_iris=Graph.only_iris(self#thumbnail)methodthumbnail_opt_iri=matchself#thumbnail_iriswith[]->None|x::_->Somexmethodtipjar=g.Graph.objects_of~sub~pred:tipjarmethodtipjar_opt=matchself#tipjarwith[]->None|x::_->Somexmethodtipjar_iris=Graph.only_iris(self#tipjar)methodtipjar_opt_iri=matchself#tipjar_iriswith[]->None|x::_->Somexmethodtitle=g.Graph.objects_of~sub~pred:titlemethodtitle_opt=matchself#titlewith[]->None|x::_->Somexmethodtitle_iris=Graph.only_iris(self#title)methodtitle_opt_iri=matchself#title_iriswith[]->None|x::_->Somexmethodtopic=g.Graph.objects_of~sub~pred:topicmethodtopic_opt=matchself#topicwith[]->None|x::_->Somexmethodtopic_iris=Graph.only_iris(self#topic)methodtopic_opt_iri=matchself#topic_iriswith[]->None|x::_->Somexmethodtopic_interest=g.Graph.objects_of~sub~pred:topic_interestmethodtopic_interest_opt=matchself#topic_interestwith[]->None|x::_->Somexmethodtopic_interest_iris=Graph.only_iris(self#topic_interest)methodtopic_interest_opt_iri=matchself#topic_interest_iriswith[]->None|x::_->Somexmethodweblog=g.Graph.objects_of~sub~pred:weblogmethodweblog_opt=matchself#weblogwith[]->None|x::_->Somexmethodweblog_iris=Graph.only_iris(self#weblog)methodweblog_opt_iri=matchself#weblog_iriswith[]->None|x::_->SomexmethodworkInfoHomepage=g.Graph.objects_of~sub~pred:workInfoHomepagemethodworkInfoHomepage_opt=matchself#workInfoHomepagewith[]->None|x::_->SomexmethodworkInfoHomepage_iris=Graph.only_iris(self#workInfoHomepage)methodworkInfoHomepage_opt_iri=matchself#workInfoHomepage_iriswith[]->None|x::_->SomexmethodworkplaceHomepage=g.Graph.objects_of~sub~pred:workplaceHomepagemethodworkplaceHomepage_opt=matchself#workplaceHomepagewith[]->None|x::_->SomexmethodworkplaceHomepage_iris=Graph.only_iris(self#workplaceHomepage)methodworkplaceHomepage_opt_iri=matchself#workplaceHomepage_iriswith[]->None|x::_->SomexmethodyahooChatID=Graph.literal_objects_ofg~sub~pred:yahooChatIDmethodyahooChatID_opt=matchself#yahooChatIDwith[]->None|x::_->Somexend