12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182(*********************************************************************************)(* 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 *)(* *)(*********************************************************************************)letsolid_str="http://www.w3.org/ns/solid/terms#";;letsolid=Iri.of_stringsolid_str;;letsolid_s=Iri.of_string(solid_str^s);;letc_Account=solid_"Account";;letc_Inbox=solid_"Inbox";;letc_Notification=solid_"Notification";;letc_Timeline=solid_"Timeline";;letc_TypeIndex=solid_"TypeIndex";;letaccount=solid_"account";;letinbox=solid_"inbox";;letnotification=solid_"notification";;letread=solid_"read";;lettimeline=solid_"timeline";;lettypeIndex=solid_"typeIndex";;moduleOpen=structletsolid_c_Account=c_Accountletsolid_c_Inbox=c_Inboxletsolid_c_Notification=c_Notificationletsolid_c_Timeline=c_Timelineletsolid_c_TypeIndex=c_TypeIndexletsolid_account=accountletsolid_inbox=inboxletsolid_notification=notificationletsolid_read=readletsolid_timeline=timelineletsolid_typeIndex=typeIndexendclassfrom?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::_->Somexmethodinbox=g.Graph.objects_of~sub~pred:inboxmethodinbox_opt=matchself#inboxwith[]->None|x::_->Somexmethodinbox_iris=Graph.only_iris(self#inbox)methodinbox_opt_iri=matchself#inbox_iriswith[]->None|x::_->Somexmethodnotification=g.Graph.objects_of~sub~pred:notificationmethodnotification_opt=matchself#notificationwith[]->None|x::_->Somexmethodnotification_iris=Graph.only_iris(self#notification)methodnotification_opt_iri=matchself#notification_iriswith[]->None|x::_->Somexmethodread=g.Graph.objects_of~sub~pred:readmethodread_opt=matchself#readwith[]->None|x::_->Somexmethodread_iris=Graph.only_iris(self#read)methodread_opt_iri=matchself#read_iriswith[]->None|x::_->Somexmethodtimeline=g.Graph.objects_of~sub~pred:timelinemethodtimeline_opt=matchself#timelinewith[]->None|x::_->Somexmethodtimeline_iris=Graph.only_iris(self#timeline)methodtimeline_opt_iri=matchself#timeline_iriswith[]->None|x::_->SomexmethodtypeIndex=g.Graph.objects_of~sub~pred:typeIndexmethodtypeIndex_opt=matchself#typeIndexwith[]->None|x::_->SomexmethodtypeIndex_iris=Graph.only_iris(self#typeIndex)methodtypeIndex_opt_iri=matchself#typeIndex_iriswith[]->None|x::_->Somexend