Βοήθεια:Βασικές ιδιότητες μέλους

From Wikidata
Jump to navigation Jump to search
This page is a translated version of the page Help:Basic membership properties and the translation is 44% complete.
Outdated translations are marked like this.

Εισαγωγή

Η σελίδα αυτή περιγράφει τις διαφορές μεταξύ των ιδιοτήτων instance of (P31), subclass of (P279) και part of (P361).

Ορισμοί

Για να κατανοήσετε τις διαφορές, είναι σημαντικό να είστε εξοικειωμένοι με τους όρους instance [είναι] και class (κλάση). Μια κλάση είναι ένα αφηρημένο αντικείμενο που αντιπροσωπεύει ένα σύνολο αντικειμένων, που ονομάζονται περιπτώσεις/όντα/instances του. Τυπικά, όλα τα όντα που ανήκουν σε μια κλάση μοιράζονται ένα σύνολο ιδιοτήτων, οι οποίες ιδιότητες χαρακτηρίζουν την κλάση. Τα όντα διαφέρουν μεταξύ τους ως προς τις τιμές που έχουν για αυτές τις ιδιότητες, αλλά όχι στο γεγονός ότι έχουν τις ίδιες τις ιδιότητες. Έτσι, κάθε κλάση χαρακτηρίζεται τυπικά από τις ιδιότητες που μοιράζονται όλα τα όντα της (αν και αυτό δεν επιβάλλεται από τα Wikidata).

If all the instances of class A necessarily also belong to class B, then we say A is a subclass of B.

Παραδείγματα

Πρακτικές πτυχές

  • Τίποτα δεν εμποδίζει ένα αντικείμενο να είναι και ον και κλάση. Ένα αντικείμενο είναι ένα ον απλώς λόγω της ύπαρξης μιας ιδιότητας instance of (P31). Ομοίως, ένα αντικείμενο είναι μια κλάση απλώς λόγω του ότι είναι η τιμή που σχετίζεται με την ιδιότητα είναι instance of (P31) κάποιου άλλου αντικειμένου (ή επειδή έχει μια ιδιότητα υποκλάσης).
  • Το πλήρες σύνολο των όντων που υπονοείται από μια κλάση μπορεί να υπάρχει ή να μην υπάρχει ως αντικείμενα στα Wikidata.
  • Εάν, από λογική άποψη, όλα τα αντικείμενα που εννοιολογικά ανήκουν στην κλάση Α (είτε είναι όντως δημιουργημένα στα Wikidata είτε όχι) πρέπει επίσης να ανήκουν στην κλάση Β, τότε η σχέση μεταξύ Α και Β ονομάζεται υποκλάση του. Λέμε ότι το Α είναι υποκλάση του Β.

Η σχέση μεταξύ όντων με κοινό χαρακτηριστικό και κλάσης που χαρακτηρίζεται από αυτό το χαρακτηριστικό παράγεται με την ιδιότητα instance of (P31). Χρησιμοποιούμε instance of (P31) αντί για subclass of (P279) όταν δεν μπορούμε να πούμε τίποτα για όντα με τέτοια σχέση. Πιο συγκεκριμένα, είναι rdf:type.[1]

Για παράδειγμα, τα Atlantic Ocean (Q97) και Pacific Ocean (Q98) είναι όντα του ocean (Q9430). Ως εκ τούτου, γράφουμε στα Wikidata:

  • χρησιμοποιείται για να δηλώσει ότι όλα τα όντα μιας κλάσης είναι όντα μιας άλλης[2]
  • πιο συγκεκριμένα, είναι ένα rdfs:subClassOf[3]

Διάφορα παραδείγματα:

Ένα ακόμα παράδειγμα:

Μια λίμνη και ένας ωκεανός δεν είναι το ίδιο, αλλά όλες οι περιπτώσεις (όντα) τους μοιράζονται το κοινό χαρακτηριστικό του να είναι ένα σώμα νερού. Επομένως, μπορούμε να χρησιμοποιήσουμε την κλάση body of water (Q15324) για να δηλώσουμε ότι:

Τώρα τα Lake Baikal (Q5513), Lake Erie (Q5492), Atlantic Ocean (Q97) και Pacific Ocean (Q98) θα είναι όλα μεταβατικές (έμμεσες) περιπτώσεις (όντα) του body of water (Q15324). Γενικά μπορούμε να χρησιμοποιήσουμε περισσότερο αφηρημένα αντικείμενα (όπως body of water (Q15324)) αντί απαριθμήσεις (lake (Q23397) και ocean (Q9430)) μαζί: 1. στις δηλώσεις μας και 2. στα ερωτήματά μας (δεν καλύπτονται σε αυτή τη σελίδα βοήθειας).

Transitive properties

The property subclass of (P279) is a transitive Wikidata property (Q18647515). This means: if a class A is a subclass of class B, and B is a subclass of class C, then A is implicitly also a subclass of C. There is then no general need to add an explicit statement to Wikidata declaring A to be a subclass of C.

For example, tree (Q10884) is a subclass of woody plant (Q757163), and woody plant (Q757163) is a subclass of plant (Q756). Thus tree (Q10884) is implicitly also a subclass of plant (Q756).

Similarly, if item x is an instance of class B, and B is a subclass of class C, then x is implicitly also an instance of C. There is then no general need to add an explicit statement to Wikidata declaring x to be an instance of C.

The property instance of (P31) is not transitive. Considering the example from above: Angela Merkel (Q567) is an instance of politician (Q82955), and politician (Q82955) is an instance of profession (Q28640), but it would be incorrect to say that Angela Merkel (Q567) is an instance of profession (Q28640).

Inferences based on transitivity do not take qualifiers into account, so instance of (P31) and subclass of (P279) statements must be valid while ignoring any qualifiers; in other words, these statements should not have any restrictive qualifier (Q61719275), or any qualifier that is being used restrictively. For example, if A is often, but not always, a subclass of B, then it is not valid to state that A is a subclass of B with nature of statement (P5102) = often (Q28962312), because this will lead to false inferences.

Items cannot be an instance of another non-class, but they can be part of another non-class. For example, Albert Einstein's brain (Q2464312) is a part of Albert Einstein (Q937). On Wikidata we use part of (P361) for this relation.

Κλάσεις μπορεί να είναι μέρος άλλων κλάσεων. Για παράδειγμα,

The use of instance of (P31) instead of part of (P361) would be wrong here because human brain (Q492038) is not a person. Using subclass of (P279) would also be wrong because an instance of human brain (Q492038) (e.g. Albert Einstein's brain (Q2464312)) is not an instance of the class Homo sapiens (Q15978631).

Like subclass of (P279), part of (P361) is a transitive property.

Inverse relations of part of (P361)

  1. has part(s) (P527) - is used to say that an instance has as part some other instance or that instances of a class have as part an instance of some other class
  2. has part(s) of the class (P2670) - is used to say that an instance (never a class) has as part an instance of a class. If the parent item is both an instance and a class, has part(s) of the class (P2670) should not be used.

Για παράδειγμα,

In the first example, has part(s) (P527) is used because Greek alphabet (Q8216) has as part Α (Q9887). has part(s) (P527) is also used in the second example because instances of alphabet (Q9779) have instances of letter (Q9788) as parts. In the last example, we take has part(s) of the class (P2670) since Greek alphabet (Q8216) has one or more instances of Greek letter (Q19793459) as parts.

Παραδείγματα

Differences among instance of (P31), subclass of (P279) and part of (P361)
Property X Y what it denotes παράδειγμα επεξήγηση why not use…
<X> instance of <Y> στιγμιότυπο κλάση
  • X is an individual (single thing) belonging to class Y
  • X is a specific example of class Y
  • all instances of class Y share certain features
  • Y is the set of its instances (including X)
<USS Nimitz> instance of <supercarrier> <USS Nimitz> is a single concrete aircraft carrier, <supercarrier> is an aircraft carrier class which has many instances (aircraft carriers)
  • subclass of not used because <USS Nimitz> is not a class
  • part of not used because <USS Nimitz> is an instance and the <supercarrier> is a class, instances cannot be parts of classes
<People's Republic of China> instance of <sovereign state> <sovereign state> is a concept defined by some features, <China> is an object which meet these features
  • subclass of not used because <China> is a concrete state
  • part of not used because instances cannot be parts of classes
<Sun> instance of <G-type main-sequence star> The <Sun> is a specific star with the spectral characteristics of a G-type main-sequence star, and so is an instance of that class
  • subclass of not used because the <Sun> is not a class but a single astronomical object
  • part of not used because non-classes cannot be parts of classes
<hatter> instance of <profession> $ποιο είναι ένα συγκεκριμένο παράδειγμα ενός επαγγέλματος
  • subclass of not used because <hatter> is not a class of professions but a single profession (instance)
  • part of not used because instances cannot be parts of classes
<Douglas Adams> instance of <human> <Douglas Adams> is a specific human person (this is one of the most common cases for instance of)
  • subclass of not used because <Douglas Adams> is not a class of people but a single person (instance)
  • part of not used because instances cannot be parts of classes
<X> subclass of <Y> κλάση κλάση
  • all instances of class X belong to class Y
  • instances of X are also instances of Y
<supercarrier> subclass of <aircraft carrier> both <supercarrier> and <aircraft carrier> are classes and the latter contains the former
  • instance of not used because <supercarrier> is not a concrete object
  • part of not used because an instance of <supercarrier> (e.g. <USS Nimitz>) cannot be part of an instance of aircraft carrier (e.g. <USS Enterprise>)
<sovereign state> subclass of <state> both of them are classes, the former has all features of the latter and some additional features, so it is a subclass of the latter
  • instance of not used because <sovereign state> is not a specific state, but a class that contains all sovereign states
  • part of not used because an instance of the sovereign state (e.g. <China>) cannot be part of an instance of state (e.g. <China>)
<G-type star> subclass of <star> every individual G-class star (instances of <G-class star>) is also a star - i.e. belongs to the class <star>
  • instance of not used because <G-class star> is not a single star, but a type of <star>
  • part of not used because the relationship is not one of composition, i.e. individual <G-class star> instances do not join together to make an instance of a <star>.
<X> part of <Y> στιγμιότυπο στιγμιότυπο
  • instance X is a part of instance Y
  • different parts of Y (including X) combine together to form the whole Y
<USS Nimitz> part of <Carrier Strike Group Eleven> <USS Nimitz> is a concrete aircraft carrier, <CSG-11> is a concrete carrier strike group, <USS Nimitz> is one of <CSG-11>'s components (its flagship)
  • instance of not used because <CSG-11> is not a class
  • subclass of not used because neither of them is a class
<People's Republic of China> part of <Asia> τόσο η <Κίνα> όσο και η <Ασία> είναι συγκεκριμένα γεωγραφικά χαρακτηριστικά, η <Κίνα> είναι μέρος της <Ασίας>
  • instance of not used because <Asia> is an instance (meanwhile <Asian country> is a class so you could say <China> is an instance of <Asian country>)
  • subclass of not used because neither of them is a class
<Sun> part of <Solar System> both of them are individual astronomical objects; the solar system is composed of the Sun, planets, and other objects in the Sun's vicinity
  • instance of not used because the latter is an individual astronomical object, not a generic concept
  • subclass of not used because neither of them is a class
κλάση κλάση ένα στιγμιότυπο της κλάσης X είναι μέρος ενός στιγμιοτύπου της κλάσης Y <flight deck> part of <aircraft carrier> every aircraft carrier (instance of <aircraft carrier>) has its own flight deck (instance of <flight deck>)
  • instance of not used because <flight deck> is a class not an instance (only a specific flight deck, such as the <flight deck of USS Nimitz>, can be an instance)
  • subclass of not used because an instance of the former (e.g. <flight deck of USS Nimitz>) cannot be the same thing as an instance of the latter (e.g. <USS Nimitz>)
<member state> part of <international organization> an instance of <member state> is a component of an instance of <international organization>
  • instance of not used because the former is a concept, does not indicate any specific state (e.g. <China>)
  • subclass of not used because an instance of <member state> does not belong to the class <international organization> (e.g. China is not an international organization)
<star> part of <galaxy> a star typically is born and lives within a single galaxy which is made up of many stars and other astronomical objects
  • instance of not used because <star> is not an example of a <galaxy>
  • subclass of not used because instances of class <star> are not instances of the class <galaxy>
  • Note: some examples above are for demonstration purposes only, which should not be used in Wikidata because there are more specific relationships that should be used (e.g. use "<China> continent <Asia>" instead of "<China> part of <Asia>").

Here is a table that explains the difference between has part(s) (P527) and has part(s) of the class (P2670).

has part(s) (P527) should be used for class-class and instance-instance relationships.

has part(s) of the class (P2670) should be used for instance-class relationships.

If you see a constraint violation on an item with has part(s) of the class (P2670)...

Διαφορές μεταξύ has part(s) (P527) και has part(s) of the class (P2670)
Property X Y what it denotes παράδειγμα επεξήγηση why not use…
<X> has part(s) <Y> στιγμιότυπο στιγμιότυπο instance X has instance Y among its parts or components <United States Congress> has part(s) <United States Senate> το Κογκρέσο των Ηνωμένων Πολιτειών έχει δύο μέρη, τη Βουλή των Αντιπροσώπων και τη Γερουσία
  • has part(s) of the class not used because <United States Congress> and <United States Senate> are concrete objects
<Solar System> has part(s) <Mars> Ο <Άρης> είναι ένας από τους πλανήτες του <Ηλιακού Συστήματος>
  • has part(s) of the class not used because <Solar System> and <Mars> are concrete objects
κλάση κλάση ένα στιγμιότυπο του X έχει ένα στιγμιότυπο του Y ανάμεσα στα μέρη του <body> has part(s) <head> γενικά ένα <σώμα> (ανατομικό χαρακτηριστικό) έχει ένα <κεφάλι> ως ένα από τα μέρη του

Το * has part(s) of the class δεν χρησιμοποιείται επειδή το <σώμα> και το <κεφάλι> είναι και τα δύο κλάσεις

<galaxy> has part(s) <star> ένας <γαλαξίας> έχει <αστέρια> ως ένα από τα μέρη του

Το * has part(s) of the class δεν χρησιμοποιείται επειδή <γαλαξίας> και <αστέρι> είναι και τα δύο κλάσεις.

<X> has part(s) of the class <Y> στιγμιότυπο κλάση το συγκεκριμένο αντικείμενο X περιλαμβάνει κάποιο στιγμιότυπο της κλάσης Y ανάμεσα στα μέρη του <University of Cambridge> has part(s) of the class <college of the University of Cambridge> το <Πανεπιστήμιο του Κέιμπριτζ> έχει κολλέγια ως μέρη
  • has part(s) not used because <University of Cambridge> does not have the class <college of the University of Cambridge> as a part, but instead has colleges as parts
<Solar System> has part(s) of the class <inner planet of the Solar System> το <Ηλιακό μας Σύστημα> έχει έναν ή περισσότερους <πλανήτες> ως μέρη του
  • has part(s) not used because <Solar System> does not have the class of <inner planets> as a part, but instead has planets as parts
<Albert Einstein> has part(s) of the class <human brain> Ο <Άλμπερτ Αϊνστάιν> είχε ένα <ανθρώπινο μυαλό> ως μέρος
  • has part(s) δεν χρησιμοποιείται επειδή το <ανθρώπινο μυαλό> είναι μια κλάση, όχι ένα στιγμιότυπο, ακόμα και αν είχε μόνο ένα.

Queries

Wikidata Queries can be used to find members of a given class, for example all subclasses of "Literary Work"; a Wikidata Query Builder is available to help.

navbox

See also


References

  1. https://www.w3.org/TR/rdf-schema/#ch_type
  2. https://www.w3.org/TR/rdf-schema/#ch_subclassof
  3. https://www.w3.org/TR/rdf-schema/#ch_subclassof


Εξωτερικοί σύνδεσμοι