Questions tagged [semantics]

The study of meaning as it applies to programming languages

Semantics is the study of meaning. In computer programming, semantics refers to the relationships between symbols in a programming language, and how those symbols are combined and manipulated to produce a computing result.

Useful links

1728 questions
0
votes
1 answer

Are there accepted standards or alternative notations to layered protocols in URI schemes (ie git+ssh://)?

Let me start by saying I'm aware that the git+ssh:// example is not a great one, as it's superfluous and not needed in practice. The spirit of my question is about nested URL schemes (which may be many deep), and how to go about expressing a…
andyortlieb
  • 2,326
  • 3
  • 21
  • 33
0
votes
1 answer

Exception while Querying ontology

QUERY=" PREFIX table: \n"+ "SELECT ?name ?symbol ?weight ?number \n"+ "FROM \n" + "WHERE \n"…
ProgramME
  • 653
  • 3
  • 12
  • 23
0
votes
2 answers

Sparql Query Format

i am getting the results of a query as sodium^^http://www.w3.org/2001/xmlschema/string What format is it ?
ProgramME
  • 653
  • 3
  • 12
  • 23
0
votes
1 answer

Semantic HTML markup for menu button (html5)

What would be the best way to markup a menu button? The idea is to have a button with a text like "add" to fold out and show the options you can add. I like the html5 tag but the label attribute doesn't sit well with me as it would mean the…
0
votes
2 answers

Semantics of sem_getvalue() in POSIX

I need to resolve a synchronization problem using PThreads. At some point in the code, one thread needs to know the number of threads blocked on a semaphore (as defined in sempahore.h). When I took a look at the man pages of sem_getvalue(sem_t *s,…
Oualid
  • 139
  • 9
0
votes
3 answers

I've run into a php class semantics conundrum

I have two classes, one of them is a configuration class. Inside of this class I have a variable called "theme". This is called config::theme . I have another class, but I can't be sure on the name as It's theme dependant. For instance, if the PHP…
0
votes
1 answer

Semantic search engine with augmented categories

I'm building semantic search engine by encoding objects in the database (into 512-dim vectors), then encoding the query and finally using k-NN algorithm to find results. The result is good, but .. I want to try augmenting my objects with additional…
Sergii Dumyk
  • 171
  • 1
  • 7
0
votes
4 answers

Does Java has ambiguous syntax which needs more information about an identifier?

NOTICE: This question is not about "Java do not have pointers" In C language, the code identifier1 * identifier2 is ambiguous for two possible meaning: If the identifier1 is a type, then this might be a pointer declaration. If the identifier1 is a…
user2269707
0
votes
1 answer

What are the semantic errors with this code

I have this code which has some semantic errors which I can't find. The first line fails to tell us what the coin flip was. The 1000 flips are a mathematically improbable 1000 tails. The die rolls a 0 when the values should be between 1 and 6. The…
0
votes
1 answer

Shader side of Vertex composition HLSL

Say you ask directX to send in vertex data from multiple vertex buffers like so: immediateContext->IASetVertexBuffers( 0, 3, bufferArray, &vertexStride, 0 ); immediateContext->IASetIndexBuffer( indexBuffer, DXGI_FORMAT_R32_UINT, 0…
user515136
0
votes
1 answer

Can a JSON API resource have an attribute which is a shorthand for a relationship?

I have a JSON API endpoint for retrieving the user. This resource will also be used to get the permissions of the user, for showing or hiding specific elements in our front end application. The resource looks like this: HTTP/1.1 200 OK Content-Type:…
0
votes
2 answers

Search engine that combines indexed text with user generated tags

I need a customizable search engine that combines normal indexing of unstructured HTML documents with user generated tag, for each document of a web application. I have already an algorithm that assign a score to each tag, i'd like to integrate the…
Manuel Bitto
  • 5,073
  • 6
  • 39
  • 47
0
votes
0 answers

SPARQL Attribute Search (MarkLogic)

I have been trying to do attribute searching in sparql, for now I have a solution with using CTS to prepare the necessary sem triples before hand as shown in the codes below xquery version "1.0-ml"; import module namespace sem =…
WhiteSolstice
  • 641
  • 2
  • 7
  • 20
0
votes
2 answers

semantic markup for stretchable header and footer

Basically I just need something like github's header and footer. The header and footer have different colors than the body and they both go on forever. My center(main) div is fixed width, so that means I need to have a container div. What I have is…
corroded
  • 21,406
  • 19
  • 83
  • 132
0
votes
1 answer

Semantically correct HTML5 for grouped

In a list of items grouped by year then listed by date (e.g nesting a list of blog posts inside a list of the years those posts span), should the time element be used for the year grouping (as in the below snippet), or only when labeling the…
Josh Klein
  • 142
  • 6