Extending SiDIF: Difference between revisions

From BITPlan cr Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 2: Line 2:
= SiDIF Extension Proposal =
= SiDIF Extension Proposal =


== 1. Statement Representations and Evolution ==
== Statement Representations and Evolution ==


=== 1.1 Natural Language Statement ===
=== Natural Language Statement ===
<syntaxhighlight lang="text">
<syntaxhighlight lang="text">
dad loves mom
dad loves mom
Line 13: Line 13:
* object (mom)
* object (mom)


=== 1.2 Semantic Web Identifiers ===
=== Semantic Web Identifiers ===
The same triple structure with Wikidata URLs:
The same triple structure with Wikidata URLs:
<syntaxhighlight lang="text">
<syntaxhighlight lang="text">
Line 23: Line 23:
Now each part has a unique identifier in the semantic web space. The first version shows the raw syntax, while the second version shows the actual linked URIs.
Now each part has a unique identifier in the semantic web space. The first version shows the raw syntax, while the second version shows the actual linked URIs.


=== 1.3 Human-Readable with Links ===
=== Human-Readable with Links ===
<syntaxhighlight lang="text">
<syntaxhighlight lang="text">
[https://www.wikidata.org/wiki/Q76 Barack Obama] [https://www.wikidata.org/wiki/Property:P26 spouse] [https://www.wikidata.org/wiki/Q13133 Michelle Obama]
[https://www.wikidata.org/wiki/Q76 Barack Obama] [https://www.wikidata.org/wiki/Property:P26 spouse] [https://www.wikidata.org/wiki/Q13133 Michelle Obama]
Line 32: Line 32:
Combines human readability with semantic web identifiers.
Combines human readability with semantic web identifiers.


== 2. Current SiDIF Reference Mechanism ==
== Current SiDIF Reference Mechanism ==


=== 2.1 Using 'it' Keyword ===
=== Using 'it' Keyword ===
<syntaxhighlight lang="text">
<syntaxhighlight lang="text">
dad loves mom
dad loves mom
Line 41: Line 41:
'it' refers to the subject of the previous statement, bridging Object-Oriented concepts (this/self) with semantic web references.
'it' refers to the subject of the previous statement, bridging Object-Oriented concepts (this/self) with semantic web references.


=== 2.2 Proposed Extension for Statement Parts ===
=== Proposed Extension for Statement Parts ===
<syntaxhighlight lang="text">
<syntaxhighlight lang="text">
https://www.wikidata.org/wiki/Q76 is wikidata_url of subject
https://www.wikidata.org/wiki/Q76 is wikidata_url of subject
Line 49: Line 49:
Allows referencing any part of the previous statement.
Allows referencing any part of the previous statement.


== 3. Core Concepts and Bridging ==
== Core Concepts and Bridging ==


=== 3.1 Fundamental Elements ===
=== Fundamental Elements ===
<syntaxhighlight lang="text">
<syntaxhighlight lang="text">
Entity - Object
Entity - Object
Line 60: Line 60:
* Semantic Web: Resources and their properties
* Semantic Web: Resources and their properties


=== 3.2 Technology Integration Example ===
=== Technology Integration Example ===
<syntaxhighlight lang="text">
<syntaxhighlight lang="text">
Person isA Concept
Person isA Concept
Line 73: Line 73:
</syntaxhighlight>
</syntaxhighlight>


== 4. Semantic Web Foundation ==
== Semantic Web Foundation ==


=== 4.1 Description Logic Basis ===
=== Description Logic Basis ===
OWL/Description Logic components:
OWL/Description Logic components:
* Concepts (Classes)
* Concepts (Classes)
Line 81: Line 81:
* Individuals (Instances)
* Individuals (Instances)


=== 4.2 RDF/OWL Mappings ===
=== RDF/OWL Mappings ===
<syntaxhighlight lang="text">
<syntaxhighlight lang="text">
# Class hierarchy
# Class hierarchy
Line 91: Line 91:
</syntaxhighlight>
</syntaxhighlight>


== 5. Design Decisions ==
== Design Decisions ==


=== 5.1 Reference Keywords Options ===
=== Reference Keywords Options ===
1. Full form: subject/predicate/object
# Full form: subject/predicate/object
2. Short form: s/p/o
# Short form: s/p/o
3. Alternative: subject/link/object
# Alternative: subject/link/object


=== 5.2 Key Bridging Concepts ===
=== Key Bridging Concepts ===
1. 'it' semantics bridges:
# 'it' semantics bridges:
  * OO: self/this/me
* OO: self/this/me
  * Semantic Web: subject reference
* Semantic Web: subject reference
# Statement part references enable:
* Metadata about relationships
* Integration with semantic web identifiers
* Technology-specific bindings


2. Statement part references enable:
=== Relationship Considerations ===
  * Metadata about relationships
  * Integration with semantic web identifiers
  * Technology-specific bindings
 
=== 5.3 Relationship Considerations ===
<syntaxhighlight lang="text">
<syntaxhighlight lang="text">
# 1:n relations bring:
# 1:n relations bring:

Revision as of 09:50, 28 January 2025

⚠️ LLM-generated content notice: Parts of this page may have been created or edited with the assistance of a large language model (LLM). The prompts that have been used might be on the page itself, the discussion page or in straight forward cases the prompt was just "Write a mediawiki page on X" with X being the page name. While the content has been reviewed it might still not be accurate or error-free. - by asking Claude AI to format and explain Talk:Extending_SiDIF

SiDIF Extension Proposal

Statement Representations and Evolution

Natural Language Statement

dad loves mom

This represents the most basic, human-readable form of a statement. It contains:

  • subject (dad)
  • predicate (loves)
  • object (mom)

Semantic Web Identifiers

The same triple structure with Wikidata URLs:

https://www.wikidata.org/wiki/Q76 https://www.wikidata.org/wiki/Property:P26 https://www.wikidata.org/wiki/Q13133

https://www.wikidata.org/wiki/Q76 https://www.wikidata.org/wiki/Property:P26 https://www.wikidata.org/wiki/Q13133

Now each part has a unique identifier in the semantic web space. The first version shows the raw syntax, while the second version shows the actual linked URIs.

Human-Readable with Links

[https://www.wikidata.org/wiki/Q76 Barack Obama] [https://www.wikidata.org/wiki/Property:P26 spouse] [https://www.wikidata.org/wiki/Q13133 Michelle Obama]

Barack Obama spouse Michelle Obama

Combines human readability with semantic web identifiers.

Current SiDIF Reference Mechanism

Using 'it' Keyword

dad loves mom
https://www.wikidata.org/wiki/Q76 is wikidata_url of it

'it' refers to the subject of the previous statement, bridging Object-Oriented concepts (this/self) with semantic web references.

Proposed Extension for Statement Parts

https://www.wikidata.org/wiki/Q76 is wikidata_url of subject
1992-10-03 is date of predicate
https://www.wikidata.org/wiki/Q13133 is wikidata_url of object

Allows referencing any part of the previous statement.

Core Concepts and Bridging

Fundamental Elements

Entity - Object
Link - relation between two objects

These map to both OO and Semantic Web paradigms:

  • OO: Objects and their relationships
  • Semantic Web: Resources and their properties

Technology Integration Example

Person isA Concept

# Technology binding options
Person_Sparql is sparql_impl of subject
http://foaf/... is prefix_url of subject
foaf is prefix of subject

Barack1950 isA Person
"Barack" is firstname of subject

Semantic Web Foundation

Description Logic Basis

OWL/Description Logic components:

  • Concepts (Classes)
  • Roles (Properties)
  • Individuals (Instances)

RDF/OWL Mappings

# Class hierarchy
Concept subClassOf owl:Thing    # Top concept (T with bar)
owl:Nothing                     # Bottom concept (inverted T)

# Instance relationship
Barack rdfType Person          # Individual -> Class relationship

Design Decisions

Reference Keywords Options

  1. Full form: subject/predicate/object
  2. Short form: s/p/o
  3. Alternative: subject/link/object

Key Bridging Concepts

  1. 'it' semantics bridges:
  • OO: self/this/me
  • Semantic Web: subject reference
  1. Statement part references enable:
  • Metadata about relationships
  • Integration with semantic web identifiers
  • Technology-specific bindings

Relationship Considerations

# 1:n relations bring:
# Good: Flexibility for different tech bindings
# Challenge: Increased complexity
Person_Sparql is sparql_impl of subject
foaf is prefix of subject