ExtendedSchema(3pm)

πŸ“¦ version 2.1.1, in arch rolling

πŸ’… Lire::ExtendedSchema

Okay bestie, welcome to Lire::ExtendedSchema (that's the 3pm manual page, if you're keeping score) β€” the little schema gremlin that takes a base schema and goes "and what if we added more fields to literally every record?" πŸ’–


✨ NAME ✨

Lire::ExtendedSchema β€” adds fields to each DLF record of a base schema. That's it, that's the whole gig. πŸŽ€


🌸 SYNOPSIS 🌸

my $schema = Lire::DlfSchema::load_schema( 'www-robot' );
my $ext_fields = $schema->extended_fields();

Look at her. Two lines. Iconic. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

So a Lire::ExtendedSchema defines a DlfSchema that adds fields to each record of a base DlfSchema. Lowkey the whole point. ✨

Where do the values of those extended fields come from? They're usually computed from values based on the values of the fields in the base DLF record. It's giving "math but make it metadata". 🧚

Now here's the tea: these values aren't written by Lire::DlfConverters β€” no ma'am β€” they're written by Lire::DlfAnalysers (or, usually, a Lire::DlfCategoriser). Like, know your role. πŸ’€


🫢 base()

Returns the Lire::DlfSchema object for which this schema's records are an extension. Basically "who's your parent, bestie?" πŸ’–


πŸ”₯ can_join_schema( $schema )

Returns true if $schema can be joined with this schema. πŸŽ€

For an ExtendedSchema, this will be true only when $schema is an ExtendedSchema which shares the same same than this schema.

Ngl, that sentence is worded kinda silly β€” that's literally how the original page words it, so I'm not touching it. πŸ™ˆ

🌈 SEE ALSO 🌈

Go read them, iykyk. πŸ‘‘


πŸ‘‘ AUTHOR πŸ‘‘

Francis J. Lacoste <flacoste@logreport.org>

Respect the author, periodt. πŸ’œ


⭐ VERSION ⭐

$Id: ExtendedSchema.pm,v 1.24 2006/07/23 13:16:29 vanbaal Exp $

Yes, she's been around a minute. Vintage. πŸŽ€


Copyright (C) 2001 Stichting LogReport Foundation

LogReport@LogReport.org

This file is part of Lire.

Lire is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

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 (see COPYING); if not, check with http://www.gnu.org/copyleft/gpl.html.

Fr fr, that warranty disclaimer is not a vibe check you want to fail. Read the license, bestie. πŸ’…

Okay that's the whole page, no cap. Signing off from Lire 2.1.1, dated 2025-09-28 β€” the ExtendedSchema(3pm) girlies stay winning. πŸ¦‹πŸŒΈπŸ’–βœ¨

πŸ“¦ where this page comes from