|
Welcome! The Trek BBS is the number one place to chat about Star Trek with like-minded fans. Please login to see our full range of forums as well as the ability to send and receive private messages, track your favourite topics and of course join in the discussions. If you are a new visitor, join us for free. If you are an existing member please login below. Note: for members who joined under our old messageboard system, please login with your display name not your login name. |
|
|||||||
| Science and Technology "Somewhere, something incredible is waiting to be known." - Carl Sagan. |
![]() |
|
|
Thread Tools |
|
|
#1 |
|
Commander
|
TVSML - a markup language to describe tv series
This is what I got so far: Code:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xs:element name="series">
<xs:complexType>
<xs:sequence>
<xs:element ref="title"/>
<xs:element ref="year"/>
<xs:element ref="country"/>
<xs:element ref="genre"/>
<xs:element ref="description"/>
<xs:element ref="studio"/>
<xs:element ref="producers"/>
<xs:element ref="actors"/>
<xs:element ref="seasons"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="title">
<xs:complexType/>
</xs:element>
<xs:element name="year">
<xs:complexType/>
</xs:element>
<xs:element name="country">
<xs:complexType/>
</xs:element>
<xs:element name="genre">
<xs:complexType/>
</xs:element>
<xs:element name="description">
<xs:complexType/>
</xs:element>
<xs:element name="studio">
<xs:complexType/>
</xs:element>
<xs:element name="producers">
<xs:complexType>
<xs:sequence>
<xs:element ref="name"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="name">
<xs:complexType/>
</xs:element>
<xs:element name="actors">
<xs:complexType>
<xs:sequence>
<xs:element ref="main"/>
<xs:element ref="recurring"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="main">
<xs:complexType/>
</xs:element>
<xs:element name="recurring">
<xs:complexType/>
</xs:element>
<xs:element name="seasons">
<xs:complexType>
<xs:sequence>
<xs:element ref="count"/>
<xs:element ref="season"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="count">
<xs:complexType/>
</xs:element>
<xs:element name="season">
<xs:complexType>
<xs:sequence>
<xs:element ref="seasonnr"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="seasonnr">
<xs:complexType>
<xs:sequence>
<xs:element ref="actorleft"/>
<xs:element ref="actorreturn"/>
<xs:element ref="episodes"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="actorleft">
<xs:complexType/>
</xs:element>
<xs:element name="actorreturn">
<xs:complexType/>
</xs:element>
<xs:element name="episodes">
<xs:complexType>
<xs:sequence>
<xs:element ref="episodecount"/>
<xs:element ref="episode"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="episodecount">
<xs:complexType/>
</xs:element>
<xs:element name="episode">
<xs:complexType>
<xs:sequence>
<xs:element ref="episodenr"/>
<xs:element ref="episodetitle"/>
<xs:element ref="director"/>
<xs:element ref="writer"/>
<xs:element ref="guestactor"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="episodenr">
<xs:complexType/>
</xs:element>
<xs:element name="episodetitle">
<xs:complexType/>
</xs:element>
<xs:element name="director">
<xs:complexType/>
</xs:element>
<xs:element name="writer">
<xs:complexType/>
</xs:element>
<xs:element name="guestactor">
<xs:complexType/>
</xs:element>
</xs:schema>
|
|
|
|
|
|
#2 |
|
Cherry Chassis
|
Re: TVSML - a markup language to describe tv series
Some general thoughts: * Actors, writers, directors, and producers are all people. You will want similar information for each, such as first name, last name, and a list of seasons in which they appeared/worked. To that end, I would have a generic "person" type that has those fields, and then you'd put collections of those under each type of person. So, the "actor" element is a collection of type "person". * The above obviates the need for the "seasonnr" element, which is confusing and seems to be of limited utility. In its place, each person can have a collection of season numbers indicating when they worked on the show. * The "year" field makes no sense by itself. Shouldn't you have "yearbegan" and "yearended"? * If you want this to be a comprehensive TV series schema, you should also have a "season" type which is a collection of "episode" elements, and for each "episode" you would have the following information: season, episode number, production number (optional?), writer(s) (collection), guest stars (collection), title, original air date, synopsis. For the sake of normalization, I suppose you could get away with only using the IDs of any people involved in a given episode, rather than duplicating the entire "person" object for each one. The overall "person" collections would be outside the "episode" and "season" collections. I know you already have some of this info in your schema, I'm just suggesting how you could reorganize/expand it to be more logical and complete. A big part of my job is designing schemas and normalizing data so I enjoy this stuff. ![]() Hope you get something out of my suggestions!
__________________
Your crash was, like, spectacular! My world simulation project! Also: Women and Men: Self-Image and Rape Culture |
|
|
|
|
#3 |
|
Commander
|
Re: TVSML - a markup language to describe tv series
|
|
|
|
|
|
#4 |
|
Cherry Chassis
|
Re: TVSML - a markup language to describe tv series
__________________
Your crash was, like, spectacular! My world simulation project! Also: Women and Men: Self-Image and Rape Culture |
|
|
|
|
#5 |
|
Commander
|
Re: TVSML - a markup language to describe tv series
|
|
|
|
|
|
#6 |
|
Cherry Chassis
|
Re: TVSML - a markup language to describe tv series
__________________
Your crash was, like, spectacular! My world simulation project! Also: Women and Men: Self-Image and Rape Culture |
|
|
|
|
#7 |
|
Commander
|
Re: TVSML - a markup language to describe tv series
|
|
|
|
|
|
#8 |
|
Cherry Chassis
|
Re: TVSML - a markup language to describe tv series
Start with what data you want to store. Define all the relationships between items in that data. Then design your database. If you don't know anything about database normalization, read up on that. It's not hard to grasp once you understand the basics. ![]() Your XML schema should more or less resemble the relational structure of your database.
__________________
Your crash was, like, spectacular! My world simulation project! Also: Women and Men: Self-Image and Rape Culture |
|
|
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
|
|
All times are GMT +1. The time now is 07:01 AM.
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
FireFox 2+ or Internet Explorer 7+ highly recommended.
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
FireFox 2+ or Internet Explorer 7+ highly recommended.






















