# Sold by the estate of Jeanne Baptiste d'Albert de Luynes from cromulent.model import factory, TimeSpan, Aggregation, Actor, Place from cromulent.vocab import Painting, add_art_setter, LotNumber, Purchase, Description add_art_setter() acq = Purchase() lot = Aggregation(label="Verrue sale, lot 87") acq2 = Purchase() obj = Painting("http://www.getty.edu/art/collection/objects/882/rembrandt-harmensz-van-rijn-the-abduction-of-europa-dutch-1632/", label="The Abduction of Europa", art=1) est = Actor(label="The estate of Jeanne Baptiste d'Albert de Luynes, comtesse de Verrue") lot.identified_by = LotNumber(value="87") lot.aggregates = obj # Date of Acquisition date = TimeSpan() date.begin_of_the_begin = "1737-03-27T00:00:00Z" date.end_of_the_end = "1737-03-27T23:59:59Z" # Description des = Description(value="1736 - 1737: Estate of Jeanne Baptiste d'Albert de Luynes, comtesse de Verrue, 1670 - 1736 [sold, Verrue sale, Paris, March 27, 1737, lot 87.]") acq.used_specific_object = lot acq.part = acq2 acq2.timespan = date acq2.transferred_title_from = est acq2.transferred_title_of = obj
from cromulent.model import factory from cromulent.vocab import Painting h = Painting() print (factory.toString(h, compact=False))
# print(factory.toString(obj, compact=False)) # Example of Ownership # from cromulent.model import factory, Acquisition # from cromulent.vocab import Painting, MuseumOrg, add_art_setter # add_art_setter() # acq = Acquisition("https://linked.art/example/activity/28", "Acquisition of Painting") # org = MuseumOrg("https://linked.art/example/group/16", "Museum") # obj = Painting("https://linked.art/example/object/62", "Painting", art=1) # obj.current_owner = org # org.acquired_title_through = acq # print(factory.toString(obj, compact=False)) # Example of Location from cromulent.model import factory, Place from cromulent.vocab import Painting, add_art_setter add_art_setter() loc = Place("https://linked.art/example/place/8", "Gallery W6") obj = Painting("https://linked.art/example/object/63", "Painting", art=1) obj.current_location = loc print(factory.toString(obj, compact=False))
# p = Person("https://linked.art/example/person/35", "Copyist") # prod.produced = copy # prod.influenced_by = org # prod.carried_out_by = p # print(factory.toString(prod, compact=False)) # from cromulent.model import factory, Production, VisualItem # from cromulent.vocab import Negative # prod = Production("https://linked.art/example/activity/72", "Printing of Photograph") # src = Negative("https://linked.art/example/object/89", "Negative") # vi = VisualItem("https://linked.art/example/VisualItem/6", "Visual Content of Photographs and Negative") # prod.used_specific_object = src # src.shows = vi # print(factory.toString(prod, compact=False)) # Example of Destructiom from cromulent.model import factory, Destruction, TimeSpan from cromulent.vocab import Painting, add_art_setter add_art_setter() prod = Destruction("https://linked.art/example/activity/80") obj = Painting("https://linked.art/example/object/94", "Example Destroyed Painting", art=1) tspan = TimeSpan("https://linked.art/example/time/22") prod.timespan = tspan tspan.begin_of_the_begin = "1823-03-01T00:00:00Z" tspan.end_of_the_end = "1823-03-31T00:00:00Z" prod.destroyed = obj print(factory.toString(prod, compact=False))
# Example of Credit/Attribution Statement # from cromulent.model import factory # from cromulent.vocab import Painting, CreditStatement, add_art_setter # add_art_setter() # obj = Painting("https://linked.art/example/object/64", "Example Painting", art=1) # credit = CreditStatement("https://linked.art/example/text/26", value="Donation of Ms J. Smith; Example Organization") # obj.referred_to_by = credit # print(factory.toString(obj, compact=False)) # Example of Rights Statement # from cromulent.model import factory # from cromulent.vocab import Painting, RightsStatement, add_art_setter # add_art_setter() # obj = Painting("https://linked.art/example/object/65", "Example Painting", art=1) # rights = RightsStatement("https://linked.art/example/text/27", value="Copyright of this object has not yet been assessed") # obj.referred_to_by = rights # print(factory.toString(obj, compact=False)) # Example of Rights Assertions from cromulent.model import factory from cromulent.vocab import Painting, RightsStatement, add_art_setter add_art_setter() obj = Painting("https://linked.art/example/object/66", "Object", art=1) rights = RightsStatement("http://rightsstatements.org/vocab/NKC/1.0/", "No known copyright") obj.referred_to_by = rights print(factory.toString(obj, compact=False))
from cromulent.model import factory, Actor, Production, BeginningOfExistence, \ EndOfExistence, TimeSpan, Place, InformationObject, Phase, VisualItem from cromulent.vocab import Painting, add_art_setter, PrimaryName, Name, \ CollectionSet, instances, aat_culture_mapping, AccessionNumber, Height, Width, \ SupportPart, Gallery, MuseumPlace, Signature, BottomPart, \ Description, RightsStatement, MuseumOrg, Purchase factory.id_type_label = True add_art_setter() obj = Painting( "http://www.getty.edu/art/collection/objects/882/rembrandt-harmensz-van-rijn-the-abduction-of-europa-dutch-1632/", label="The Abduction of Europa", art=1) # Title obj.identified_by = PrimaryName(label="Title", value="The Abduction of Europa") obj.identified_by = Name(label="ALternate Title", value="El rapto de Europa (Published Title)") prod = Production() obj.produced_by = prod # Collection col = CollectionSet("http://www.getty.edu/art/collection/", label="The J. Paul Getty Museum Collection") obj.aggregated_by = col # Artist info artist = Actor( "http://www.getty.edu/art/collection/artists/469/rembrandt-harmensz-van-rijn-dutch-1606-1669/",
# obj.identified_by = acc_num # obj.identified_by = loc_num # print (factory.toString(obj, compact=False)) # Example of Context for Non-URI Identifiers from cromulent.vocab import Painting, AccessionNumber, add_art_setter add_art_setter - acc_num = AccessionNumber("https://linked.art/example/identifier/9", value="P1998-27") aggr = Aggregation("https://linked.art/example/set/15", label="Paintings Collection") o = Painting("https://linked.art/example/object/47", label="Example Painting", art=1) o.identified_by = acc_num o.aggregated_by = aggr print (factory.toString(o, compact=False)) # Example of Titles # from cromulent.vocab import Painting, PrimaryName, Name, add_art_setter # add_art_setter() # ptitle = "Self Portrait" # atitle = "Portrait of the Artist" # prim_name = PrimaryName("https://linked.art/example/name/16", value=ptitle)
# from cromulent.vocab import Painting, instances, add_art_setter # add_art_setter() # obj = Painting("https://linked.art/example/object/37", "Portrait of Lord Nelson", art=1) # vitem = VisualItem("https://linked.art/example/VisualItem/2") # sub = instances["war"] # obj.shows = vitem # vitem.about = sub # print(factory.toString(obj, compact=False)) # Example of Style from cromulent.model import factory, VisualItem from cromulent.vocab import Painting, add_art_setter, instances add_art_setter() obj = Painting("https://linked.art/example/object/38", "Example Impressionist Painting", art=1) vitem = VisualItem("https://linked.art/example/VisualItem/3") style = instances["impressionism"] obj.shows = vitem vitem.style = style print(factory.toString(obj, compact=False)) # Example of Classification # from cromulent.model import factory, VisualItem # from cromulent.vocab import Painting, instances # obj = Painting("https://linked.art/example/object/39", "Example Landscape Painting") # vitem = VisualItem("https://linked.art/example/VisualItem/4") # clas = instances["landscapes"]