SharePoint 分類法的 SKOS 格式參照

本文包括用於表示 SharePoint 分類法的 RDF 詞彙,它基於 SKOS。 如需此 RDF 語法的序列化,請使用 RDF TURTLE

下表顯示了 SharePoint 分類法詞彙的 SKOS 對等用法。 SharePoint 不支援沒有對等 SharePoint 分類法的 SKOS 值。

SharePoint 分類法 SKOS 對等用法
sharepoint-taxonomy:字詞 skos:概念
sharepoint-taxonomy:TermSet skos:ConceptScheme
sharepoint-taxonomy:inTermSet skos: inScheme
sharepoint-taxonomy:hasTopLevelTerm skos: hasTopConcept
sharepoint-taxonomy:topLevelTermOf skos: topConceptOf
sharepoint-taxonomy:defaultLabel skos: prefLabel
sharepoint-taxonomy: termSetName skos: prefLabel
sharepoint-taxonomy: propertyName skos: prefLabel
sharepoint-taxonomy:otherLabel skos: altLabel
sharepoint-taxonomy:描述 skos: definition
sharepoint-taxonomy:父系 skos: 廣泛
sharepoint-taxonomy:子系 skos:較窄

下表顯示了從 OWL 衍生的 SharePoint 分類法詞彙的實體。

SharePoint 分類法詞彙 自 OWL 衍生
sharepoint-taxonomy:isAvailableForTagging owl:datatypeproperty
sharepoint-taxonomy:SharedCustomPropertyForTerm owl:ObjectProperty
sharepoint-taxonomy:LocalCustomPropertyForTerm owl:ObjectProperty
sharepoint-taxonomy:CustomPropertyForTermSet owl:ObjectProperty

SharePoint 分類法詞彙

分類法是正式分類系統。 分類法將描述事物的單詞、標籤和字詞分組,然後將這些群組排列成階層圖。

sharepoint-taxonomy:Term

代表受管理的中繼資料階層圖中的字詞或關鍵字。

字詞是 SharePoint TermStore 的原子單元。 每個字詞都屬於屬於 TermGroupTermSet

定義字詞的語法如下:

ex:TermA    a    sharepoint-taxonomy:Term;
    sharepoint-taxonomy:inTermSet    ex:TermSetA;
    sharepoint-taxonomy:topLevelTermOf    ex:TermSetA;
    sharepoint-taxonomy:child    ex:TermA1;
    sharepoint-taxonomy:isAvailableForTagging    “true”^^xsd:Boolean;
    sharePoint-taxonomy:defaultLabel    “Term A”@en-us.

字詞強制存在於 TermSet 中。 DefaultLabel 是字詞在視覺呈現方式中顯示的名稱。 定義字詞的必要欄位包括:

  • sharepoint-taxonomy:defaultLabel
  • sharepoint-taxonomy:inTermSet

字詞可以:

  • 在階層上與另一字詞相關,前提是這兩個字詞屬於同一個 TermSet
  • 有多個子系字詞,但只有單一父系字詞
  • 如果父 系 Term 是 topLevelTermOf TermSet,則不會定義父 字詞
  • 每個 TermStore 工作語言都有一個 defaultLabel。
  • 如果它包含父 系 Term,或是 topLevelTermOf TermSet,則不存在。
  • 在相同的階層層級中,只有唯一的 defaultLabel。

sharepoint-taxonomy:TermSet

表示字詞物件的階層或平面集,稱為「TermSet」。

顧名思義,TermSet 是字詞的集合。 TermStore 中的字詞必須屬於 TermSet。 沒有單獨存在的字詞

定義TermSet的語法如下:

ex:TermSetA    a    sharepoint-taxonomy:TermSet;
    sharepoint-taxonomy:termSetName    “TermSet A";
    sharepoint-taxonomy:isAvailableForTagging    “true”^^xsd:Boolean;
    sharepoint-taxonomy:hasTopLevelTerm    Ex:Term A.

TermSets 會以邏輯方式組入 TermGroups。 定義字詞的必要欄位是:

  • sharepoint-taxonomy: termSetName

如果提供的 termSetName 字詞在 TermGroup內不是唯一的,SharePoint 會在名稱結尾附加一個數位,以維護 termSetName () 的唯一性。

sharepoint-taxonomy:hasTopLevelTerm

SharePoint 會使用此屬性來對應TermSet中最上層的字詞,這是TermSet字詞階層的進入點。 此屬性與 sharepoint-taxonomy 相反:topLevelTermOf。

定義此屬性的語法為:

ex:TermSetA    sharepoint-taxonomy:hasTopLevelTerm    ex:TermA.

注意事項

您無法定義父系 字詞 的最上層 字詞

sharepoint-taxonomy:topLevelTermOf

Sharepoint-taxonomy:topLevelTermOf 是 sharepoint-taxonomy 的反向:hasTopLevelTerm

定義此屬性的語法為:

ex:TermA    sharepoint-taxonomy:topLevelTermOf    ex:TermSetA.

sharepoint-taxonomy:inTermSet

使用此屬性可將 字詞 對應至 TermSet。 單一字詞只能存在於單一 TermSet中。 定義字詞時,SharePoint 就需要使用這個屬性。

必要標籤

在開始使用受托管的中繼資料之前,貴組織可能需要仔細規劃。 您必須執行的規劃量取決於分類法的正式程度。 它也取決於您想對中繼資料施加多少控制。 在階層的各個層級,您需要為字詞或 TermSet 設定所需的標籤。

字詞可以有一或多個預設語言的標籤,以及零個或多個非預設語言的標籤。 如果字詞在語言中有標籤,則其中一個標籤必須是預設標籤。

sharepoint-taxonomy:defaultLabel

將此預設詞法標籤用於作為字詞必要參數的字詞。 用以視覺化表示字詞

定義 defaultLabel 的語法如下:

ex:TermA    sharepoint-taxonomy:defaultLabel    “Term A”@en-us.

DefaultLabel 包含兩部分:字串和語言標籤。 該語言必須是 TermStore 工作語言之一。 defaultLabel 對同一 TermSet 中同一階層級的所有字詞 必須是唯一的。

sharepoint-taxonomy:termSetName

取得並設定目前 TermSet 物件的名稱。

此屬性是 TermSet的語彙標籤,使用 TermStore 工作語言。 此屬性是 TermSet的必要參數。 用以視覺化表示TermSet

定義 termSetName 的語法如下:

ex:TermA    sharepoint-taxonomy:TermSetName    “Term Set A”@en-us.

sharepoint-taxonomy:propertyName

取得並設定目前 TermSet 物件的使用者定義樣式。

此屬性是 Sharepoint-taxonomy:SharedCustomPropertyForTerm、sharepoint-taxonomy:LocalCustomPropertyForTerm 和 TermStore 工作語言中 sharepoint-taxonomy:CustomPropertyForTermSet 的語彙標籤。

sharepoint-taxonomy: propertyName 會被視為 CustomProperty 的索引鍵。

定義 propetyName 的語法如下:

ex:SharedCustomProperty1    sharepoint-taxonomy:propertyName    “Shared Custom Property Key 1”@en-us.

選用標籤

您也可以向分類法中添加選用標籤。

sharepoint-taxonomy:otherLabel

這個屬性是 字詞的替代語彙標籤。

定義 otherLabel 的語法如下:

ex:TermA    sharepoint-taxonomy:otherLabel    “Term A”@en-us.

語意關聯性

分類法有階層和有時的一個簡單「相關字詞」關聯關係,但有些分類法有「語意關係」或自訂建立的關聯性。

sharepoint-taxonomy:parent

這個屬性會以階層方式將 字詞 關聯至另一個 字詞字詞可以是 TermSet的頂層字詞,否則一定有父系字詞

定義父系的語法如下:

ex:TermA1    sharepoint-taxonomy:parent    ex:TermA.

此語法表示 TermA 是父代,而 TermA 是子系。

sharepoint-taxonomy:child

物件包含一或多個子 TermSet 實例,而且可以透過 TermSets 屬性存取這些實例。 這個類別也提供建立新子系 TermSet 物件的方法。 編輯子系 Term 和 TermSet 實例的許可權是在群組上指定。

這個屬性會以階層方式將 字詞 關聯至另一個 字詞

定義子系的語法如下:

ex:TermA    sharepoint-taxonomy:child    ex:TermA1.

此語法表示 TermA 是父代,而 TermA 是子系。

文件附註

本節討論在 Microsoft.SharePoint.Taxonomy 命名空間中詳細描述的分類資訊。

sharepoint-taxonomy:description

此屬性是任何 SharePoint 分類法 詞彙實體的詳細說明。

新增描述的語法是:

ex:TermA    sharepoint-taxonomy:description    “Term A is the top level term of TermSetA”@en-us.

自訂屬性

從只讀字典中取得目前字詞對象的自訂屬性物件的集合。

自訂屬性是可以為字詞TermSet 定義的機碼值對,以進一步描述字詞TermSet。 SharePoint 在 propertyName 的協助下指定自訂屬性的鍵。

sharepoint-taxonomy:CustomPropertyForTermSet

定義此屬性的語法為:

ex:CustomProp1    rdf:type    sharepoint-taxonomy:CustomPropertyForTermSet;
    sharepoint-taxonomy:propertyName “Colour”.

ex:TermSetA    ex:CustomProp1    “Red”@en-us.

sharepoint-taxonomy:SharedCustomPropertyForTerm

如果 字詞 的自訂屬性必須與 字詞一起攜帶,當您在其他地方重複使用 字詞 時,則必須在 SharedCustomPropertyForTerm 底下定義該字詞。

定義此屬性的語法為:

ex:CustomProp2    rdf:type sharepoint-taxonomy:SharedCustomPropertyForTerm;
    sharepoint-taxonomy:propertyName “Length”.

ex:TermA    ex:CustomProp2    “5 cm”@en-us.

sharepoint-taxonomy:LocalCustomPropertyForTerm

如果 字詞 的自訂屬性不需要隨附于 字詞,當您在其他地方重複使用 字詞 時,則必須在 LocalCustomPropertyForTerm 下定義該字詞。

定義此屬性的語法為:

ex:CustomProp3    rdf:type sharepoint-taxonomy:LocalCustomPropertyForTerm;
    sharepoint-taxonomy:propertyName “width”.

ex:TermA    ex:CustomProp3    “5 cm”@en-us.

資料內容

在階層的各個層級,您需要為字詞或 TermSet 設定指定的資料内容。

sharepoint-taxonomy:isAvailableForTagging

使用此屬性來指定 SharePoint 清單和文件庫中是否有可用的 字詞TermSet

此屬性的語法為:

ex:TermA    sharepoint-taxonomy:isAvailableForTagging     "true"^^xsd:Boolean;

網域和範圍

下表描述 SharePoint 分類法詞彙的網域和範圍。

Predicates/verb 意義 網域 範圍
inTermSet 字詞組中 字詞 字詞組
inTermGroup 字詞群組中 TermSet TermGroup
topLevelTermOf 頂層字詞屬於 字詞 TermSet
hasTopLevelTerm 具有頂層字詞 字詞組 字詞
termSetName 字詞組有名稱 字詞 純文字
defaultLabel 字詞有預設標籤 字詞 純文字
otherLabel 字詞有其他標籤 字詞 純文字
propertyName 具有屬性標籤 SharedCustomPropertyForTerm,LocalCustomPropertyForTerm,CustomPropertyForTermSet 布林值、字串、整數、小數點、雙精確度
描述 具有描述 全部 純文字
父系 具有父系 字詞 字詞
子系 具有子系 字詞 字詞
isAvailableForTagging 可用於標記 字詞、字詞組 布林值
SharedCustomPropertyForTerm 具有共用自訂屬性 字詞 布林值、字串、整數、小數點、雙精確度
LocalCustomPropertyForTerm 具有本地自訂屬性 字詞 布林值、字串、整數、小數點、雙精確度
CustomPropertyForTermSet 具有自訂屬性 TermSet 布林值、字串、整數、小數點、雙精確度

SharePoint 分類法不允許的SKOS有效案例:

  • 階層式備援 - SKOS 概念可以同時附加至數個更廣泛的概念,但 sharepoint-taxonomy:Term 只能有一個 sharepoint-taxonomy:parent,因此也不允許使用詞彙的迴圈相依性。
  • SharePoint 分類法中不允許孤立的字詞。 每個 sharepoint-taxonomy:字詞都應該有 sharepoint-taxonomy:parent,或應該是 sharepoint-taxonomy:topLevelTermOf a TermSet。
  • SharePoint 分類法不支援關聯關聯。
  • SharePoint 分類法只允許兩種類型的階層式關聯 - sharepoint-taxonomy:父系和 sharepoint-Taxonomy:子系。
  • SKOS 不同,SharePoint 分類法詞彙中的階層關係只能用同一 TermSet 中的字詞建立。