Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is all FormattedContent expressed in a Language? #1154

Open
rjyounes opened this issue Sep 2, 2024 · 3 comments
Open

Is all FormattedContent expressed in a Language? #1154

rjyounes opened this issue Sep 2, 2024 · 3 comments

Comments

@rjyounes
Copy link
Collaborator

rjyounes commented Sep 2, 2024

gist:FormattedContent is a subclass of gist:ContentExpression and is expressed in a gist:MediaType.

gist:ContentExpression is expressed in a gist:Language.

gist:Language includes human and computer languages.

gist:FormattedContent
	a owl:Class ;
	owl:equivalentClass [
		a owl:Class ;
		owl:intersectionOf (
			gist:ContentExpression
			[
				a owl:Restriction ;
				owl:onProperty gist:isExpressedIn ;
				owl:someValuesFrom gist:MediaType ;
			]
		) ;
	] .


gist:ContentExpression
	a owl:Class ;
	rdfs:subClassOf
		[
			a owl:Restriction ;
			owl:onProperty gist:isExpressedIn ;
			owl:someValuesFrom gist:Language ;
		]
		.

But while some kinds of formatted content are expressed in a human language - e.g, text in HTML, PDFs, PowerPoints, plain text documents, etc. - do we consider media types like JPG and PNG to also be languages? If not, there's an error in the definitions.

@rjyounes
Copy link
Collaborator Author

rjyounes commented Sep 2, 2024

Incidentally, isExpressedIn is defined as "The language something was expressed in," with no reference to media type.

@uscholdm
Copy link
Contributor

uscholdm commented Sep 3, 2024

do we consider media types like JPG and PNG to also be languages?

I don't think so, unless it's some highly abstract notion of language. This is what ChatGPT has to say:

You said:
Can media types like JPG and PNG be considered as languages

ChatGPT said:

No, media types like JPG and PNG are not considered languages. Instead, they are file formats or media types used for encoding digital images.
Explanation:

JPG (JPEG): Stands for Joint Photographic Experts Group, which is the organization that created the JPEG image format. It's a commonly used method of lossy compression for digital images, particularly for those images produced by digital photography. The file extension is .jpg or .jpeg.

PNG: Stands for Portable Network Graphics. It is a raster-graphics file format that supports lossless data compression. The file extension is .png.

Difference from Languages:

Languages: In computing, languages (such as programming languages like Python, markup languages like HTML, or natural languages like English) are systems of symbols and rules used to communicate information or instructions. They involve syntax, semantics, and often grammar.

File Formats: JPG and PNG, on the other hand, are not languages but are methods of encoding, storing, and transmitting image data. They define how image data should be compressed and stored in a file but do not involve syntax or grammar in the way languages do.

Summary:

JPG and PNG: File formats/media types for images.
Languages: Systems of symbols and rules for communication (e.g., programming languages, natural languages).

Thus, JPG and PNG are not languages; they are file formats used to store and transmit images.

@rjyounes
Copy link
Collaborator Author

rjyounes commented Sep 3, 2024

That's what I thought. Therefore, the restriction on ContentExpression does not work for FormattedContent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Triage
Development

No branches or pull requests

2 participants